Store group ids as strings

This commit is contained in:
lilia 2014-10-17 13:11:08 -07:00
parent 8288e298fc
commit 0036e4ef74

View file

@ -76,7 +76,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('groupId', groupId); thread.set('groupId', getString(groupId));
thread.save(); thread.save();
return thread; return thread;
}); });