Merge pull request #7042 from antobinary/chat-updates
Only process chat msgs when requested from html5
This commit is contained in:
commit
719c3f99d6
@ -2,8 +2,9 @@ import RedisPubSub from '/imports/startup/server/redis';
|
||||
import handleGroupChatsMsgs from './handlers/groupChatsMsgs';
|
||||
import handleGroupChatMsgBroadcast from './handlers/groupChatMsgBroadcast';
|
||||
import handleClearPublicGroupChat from './handlers/clearPublicGroupChat';
|
||||
import { processForHTML5ServerOnly } from '/imports/api/common/server/helpers';
|
||||
|
||||
RedisPubSub.on('GetGroupChatMsgsRespMsg', handleGroupChatsMsgs);
|
||||
RedisPubSub.on('GetGroupChatMsgsRespMsg', processForHTML5ServerOnly(handleGroupChatsMsgs));
|
||||
RedisPubSub.on('GroupChatMessageBroadcastEvtMsg', handleGroupChatMsgBroadcast);
|
||||
RedisPubSub.on('ClearPublicChatHistoryEvtMsg', handleClearPublicGroupChat);
|
||||
RedisPubSub.on('SyncGetGroupChatMsgsRespMsg', handleGroupChatsMsgs);
|
||||
|
@ -2,8 +2,9 @@ import RedisPubSub from '/imports/startup/server/redis';
|
||||
import handleGroupChats from './handlers/groupChats';
|
||||
import handleGroupChatCreated from './handlers/groupChatCreated';
|
||||
import handleGroupChatDestroyed from './handlers/groupChatDestroyed';
|
||||
import { processForHTML5ServerOnly } from '/imports/api/common/server/helpers';
|
||||
|
||||
RedisPubSub.on('GetGroupChatsRespMsg', handleGroupChats);
|
||||
RedisPubSub.on('GetGroupChatsRespMsg', processForHTML5ServerOnly(handleGroupChats));
|
||||
RedisPubSub.on('GroupChatCreatedEvtMsg', handleGroupChatCreated);
|
||||
RedisPubSub.on('GroupChatDestroyedEvtMsg', handleGroupChatDestroyed);
|
||||
RedisPubSub.on('SyncGetGroupChatsRespMsg', handleGroupChats);
|
||||
|
@ -33,7 +33,7 @@ export default function updateVoiceUser(meetingId, voiceUser) {
|
||||
return Logger.error(`Update voiceUser=${intId}: ${err}`);
|
||||
}
|
||||
|
||||
return Logger.info(`Update voiceUser=${intId} meeting=${meetingId}`);
|
||||
return Logger.debug(`Update voiceUser=${intId} meeting=${meetingId}`);
|
||||
};
|
||||
|
||||
return VoiceUsers.update(selector, modifier, cb);
|
||||
|
Loading…
Reference in New Issue
Block a user