From cd55c0a1f1725780eb27be8df94cd6d96cd81763 Mon Sep 17 00:00:00 2001 From: lilia Date: Fri, 17 Oct 2014 14:32:37 -0700 Subject: [PATCH] Put groupid back in id field also --- js/models/threads.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/models/threads.js b/js/models/threads.js index a3b5bab7a..dab1740b9 100644 --- a/js/models/threads.js +++ b/js/models/threads.js @@ -77,6 +77,7 @@ var Whisper = Whisper || {}; }; var thread = this.findOrCreate(attributes); return textsecure.messaging.createGroup(recipients, name).then(function(groupId) { + thread.set('id', getString(groupId)); thread.set('groupId', getString(groupId)); thread.save(); return thread; @@ -97,6 +98,7 @@ var Whisper = Whisper || {}; var attributes = {}; if (decrypted.message.group) { attributes = { + id : decrypted.message.group.id, groupId : decrypted.message.group.id, name : decrypted.message.group.name || 'New group', type : 'group',