File tree Expand file tree Collapse file tree
src/main/java/io/moquette/persistence
distribution/src/main/resources Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -207,9 +207,9 @@ server.multi_endpoint false
207207# 多平台连接状态通知(仅当multi_endpoint为false时有效),true时移动端可以收到pc或web端登录的通知。
208208server.multi_platform_notification true
209209
210- # 当pc或者web在线时,手机是否默认静音,默认为false 。注意仅影响默认值,用户可以手动切换是否静音。
211- # 如果这里改为true ,客户端那边需要同步修改pc在线默认通知状态,方法是client的setDefaultSilentWhenPcOnline函数。
212- server.mobile_default_silent_when_pc_online false
210+ # 当pc或者web在线时,手机是否默认静音,默认为true 。注意仅影响默认值,用户可以手动切换是否静音。
211+ # 如果这里改为false ,客户端那边需要同步修改pc在线默认通知状态,方法是client的setDefaultSilentWhenPcOnline函数。
212+ server.mobile_default_silent_when_pc_online true
213213
214214#*********************************************************************
215215# Push server configuration
Original file line number Diff line number Diff line change @@ -133,7 +133,7 @@ public class MemoryMessagesStore implements IMessagesStore {
133133 private boolean mFriendNewWelcomeMessage = true ;
134134
135135 private boolean mMultiPlatformNotification = false ;
136- private boolean mMobileDefaultSilentWhenPCOnline = false ;
136+ private boolean mMobileDefaultSilentWhenPCOnline = true ;
137137 private boolean mDisableStrangerChat = false ;
138138
139139 private long mChatroomParticipantIdleTime = 900000 ;
@@ -185,7 +185,7 @@ public class MemoryMessagesStore implements IMessagesStore {
185185 }
186186
187187 try {
188- mMobileDefaultSilentWhenPCOnline = Boolean .parseBoolean (m_Server .getConfig ().getProperty (SERVER_MOBILE_DEFAULT_SILENT_WHEN_PC_ONLINE , "false " ));
188+ mMobileDefaultSilentWhenPCOnline = Boolean .parseBoolean (m_Server .getConfig ().getProperty (SERVER_MOBILE_DEFAULT_SILENT_WHEN_PC_ONLINE , "true " ));
189189 } catch (Exception e ) {
190190 e .printStackTrace ();
191191 }
Original file line number Diff line number Diff line change @@ -204,9 +204,9 @@ server.multi_endpoint false
204204# 多平台连接状态通知(仅当multi_endpoint为false时有效),true时移动端可以收到pc或web端登录的通知。
205205server.multi_platform_notification true
206206
207- # 当pc或者web在线时,手机是否默认静音,默认为false 。注意仅影响默认值,用户可以手动切换是否静音。
208- # 如果这里改为true ,客户端那边需要同步修改pc在线默认通知状态,方法是client的setDefaultSilentWhenPcOnline函数。
209- server.mobile_default_silent_when_pc_online false
207+ # 当pc或者web在线时,手机是否默认静音,默认为true 。注意仅影响默认值,用户可以手动切换是否静音。
208+ # 如果这里改为false ,客户端那边需要同步修改pc在线默认通知状态,方法是client的setDefaultSilentWhenPcOnline函数。
209+ server.mobile_default_silent_when_pc_online true
210210
211211#*********************************************************************
212212# Push server configuration
You can’t perform that action at this time.
0 commit comments