Put groupid back in id field also
This commit is contained in:
parent
0bd5f3e3c2
commit
cd55c0a1f1
1 changed files with 2 additions and 0 deletions
|
@ -77,6 +77,7 @@ var Whisper = Whisper || {};
|
||||||
};
|
};
|
||||||
var thread = this.findOrCreate(attributes);
|
var thread = this.findOrCreate(attributes);
|
||||||
return textsecure.messaging.createGroup(recipients, name).then(function(groupId) {
|
return textsecure.messaging.createGroup(recipients, name).then(function(groupId) {
|
||||||
|
thread.set('id', getString(groupId));
|
||||||
thread.set('groupId', getString(groupId));
|
thread.set('groupId', getString(groupId));
|
||||||
thread.save();
|
thread.save();
|
||||||
return thread;
|
return thread;
|
||||||
|
@ -97,6 +98,7 @@ var Whisper = Whisper || {};
|
||||||
var attributes = {};
|
var attributes = {};
|
||||||
if (decrypted.message.group) {
|
if (decrypted.message.group) {
|
||||||
attributes = {
|
attributes = {
|
||||||
|
id : decrypted.message.group.id,
|
||||||
groupId : decrypted.message.group.id,
|
groupId : decrypted.message.group.id,
|
||||||
name : decrypted.message.group.name || 'New group',
|
name : decrypted.message.group.name || 'New group',
|
||||||
type : 'group',
|
type : 'group',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue