添加禁止客户端发送群通知开工
This commit is contained in:
@@ -150,6 +150,7 @@ public class MemoryMessagesStore implements IMessagesStore {
|
||||
private String mChannelInfoUpdateCallback;
|
||||
private String mChatroomInfoUpdateCallback;
|
||||
private String mChatroomMemberUpdateCallback;
|
||||
private boolean mGroupAllowClientCustomOperationNotification;
|
||||
|
||||
MemoryMessagesStore(Server server, DatabaseStore databaseStore) {
|
||||
m_Server = server;
|
||||
@@ -298,6 +299,12 @@ public class MemoryMessagesStore implements IMessagesStore {
|
||||
} catch (Exception e) {
|
||||
|
||||
}
|
||||
|
||||
try {
|
||||
mGroupAllowClientCustomOperationNotification = Boolean.parseBoolean(server.getConfig().getProperty(GROUP_Allow_Client_Custom_Operation_Notification));
|
||||
} catch (Exception e) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void printMissConfigLog(String config, String defaultValue) {
|
||||
@@ -3257,6 +3264,11 @@ public class MemoryMessagesStore implements IMessagesStore {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAllowClientCustomGroupNotification() {
|
||||
return mGroupAllowClientCustomOperationNotification;
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getMessageHead(String user) {
|
||||
TreeMap<Long, Long> maps = userMessages.get(user);
|
||||
|
||||
Reference in New Issue
Block a user