Fix null conversationId on group sync messages

This commit is contained in:
lilia 2015-05-18 14:08:19 -07:00
parent 65a6068003
commit 654373d743

View file

@ -133,7 +133,8 @@
var conversationId = source;
if (pushMessageContent.sync) {
conversationId = pushMessageContent.sync.destination;
} else if (pushMessageContent.group) {
}
if (pushMessageContent.group) {
conversationId = pushMessageContent.group.id;
}
var conversation = new Whisper.Conversation({id: conversationId});