From cdc7f0893c54a21fac2a931e35e1fbebed4a084d Mon Sep 17 00:00:00 2001 From: heavyrain2012 Date: Tue, 11 May 2021 00:07:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=A5=BD=E5=8F=8B=E6=88=90?= =?UTF-8?q?=E5=8A=9F=E5=90=8E=E7=9A=84=E6=AC=A2=E8=BF=8E=E8=AF=AD=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E4=BD=BF=E7=94=A8=E6=96=B0=E6=96=B9=E5=BC=8F=EF=BC=8C?= =?UTF-8?q?=E5=A6=82=E6=9E=9C=E6=9C=89=E6=97=A7=E7=9A=84=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E7=AB=AF=E9=9C=80=E8=A6=81=E5=85=B3=E9=97=AD=E6=AD=A4=E5=BC=80?= =?UTF-8?q?=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- broker/config/wildfirechat.conf | 2 +- .../main/java/io/moquette/persistence/MemoryMessagesStore.java | 2 +- distribution/src/main/resources/wildfirechat.conf | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/broker/config/wildfirechat.conf b/broker/config/wildfirechat.conf index c13926e6..d4e5c4ee 100755 --- a/broker/config/wildfirechat.conf +++ b/broker/config/wildfirechat.conf @@ -115,7 +115,7 @@ friend.request_expiration_duration 604800000 ##旧的方式会发送notification消息(contenttype是80),内容会根据好友接收者的语言选择对应的语言,如果双方语言不一致会导致另外一方看到的不是本地语言。 ##新的方式会发送添加好友消息(contenttype是93)和欢迎消息(contenttype是92),需要客户端实现这两种消息。 ##如果客户端已经实现这两种消息可以打开这个开关 -friend.new_welcome_message false +friend.new_welcome_message true ## 聊天室观众空闲退出时间,单位为毫秒,默认为15分钟,0为永远不退出 chatroom.participant_idle_time 900000 diff --git a/broker/src/main/java/io/moquette/persistence/MemoryMessagesStore.java b/broker/src/main/java/io/moquette/persistence/MemoryMessagesStore.java index 71fc9d6f..9566fd15 100755 --- a/broker/src/main/java/io/moquette/persistence/MemoryMessagesStore.java +++ b/broker/src/main/java/io/moquette/persistence/MemoryMessagesStore.java @@ -130,7 +130,7 @@ public class MemoryMessagesStore implements IMessagesStore { private long mFriendRequestDuration = 7 * 24 * 60 * 60 * 1000; private long mFriendRejectDuration = 30 * 24 * 60 * 60 * 1000; private long mFriendRequestExpiration = 7 * 24 * 60 * 60 * 1000; - private boolean mFriendNewWelcomeMessage = false; + private boolean mFriendNewWelcomeMessage = true; private boolean mMultiPlatformNotification = false; private boolean mDisableStrangerChat = false; diff --git a/distribution/src/main/resources/wildfirechat.conf b/distribution/src/main/resources/wildfirechat.conf index 4eb37ad9..f64740df 100755 --- a/distribution/src/main/resources/wildfirechat.conf +++ b/distribution/src/main/resources/wildfirechat.conf @@ -109,7 +109,7 @@ friend.request_expiration_duration 604800000 ##旧的方式会发送notification消息(contenttype是80),内容会根据好友接收者的语言选择对应的语言,如果双方语言不一致会导致另外一方看到的不是本地语言。 ##新的方式会发送添加好友消息(contenttype是93)和欢迎消息(contenttype是92),需要客户端实现这两种消息。 ##如果客户端已经实现这两种消息可以打开这个开关 -friend.new_welcome_message false +friend.new_welcome_message true ## 聊天室观众空闲退出时间,单位为毫秒,默认为15分钟,0为永远不退出 chatroom.participant_idle_time 900000