|
@ -46,7 +46,7 @@ class Sessions extends RedisModel {
|
|
|
*/
|
|
|
createSession(sessionId, name, type, participantArray, handler) {
|
|
|
let self = this;
|
|
|
if (type == SESSION_TYPES.P2P) {
|
|
|
if (type == SESSION_TYPES.P2P||type==SESSION_TYPES.SYSTEM) {
|
|
|
var participantIdArray = [];
|
|
|
for (let i in participantArray) {
|
|
|
participantIdArray.push(participantArray[i].split(":")[0]);
|
|
@ -119,7 +119,7 @@ class Sessions extends RedisModel {
|
|
|
|
|
|
Messages.updateLastContent(sessionKey, type, name, message);
|
|
|
Participants.saveParticipantsToRedis(sessionId, participantArray, createDate, function (res) {
|
|
|
if (isMucSession) {
|
|
|
if (isMucSession&&handler) {
|
|
|
handler(true, sessionId);
|
|
|
} else {
|
|
|
ModelUtil.emitOK(self.eventEmitter, {id: sessionId});
|