Fix leave group bug

This one's been around since forever, but only manifests when someone
leaves the group and comes back. In that case we fail to reinit their
numberRegistrationId object, which causes a npe when we try to send
send them group messages.

Affected parties must ask their fickle friends to leave/join again.

// FREEBIE
This commit is contained in:
lilia 2015-09-21 10:43:20 -07:00
parent 4a482243d0
commit ce49d14d85
2 changed files with 2 additions and 2 deletions

View file

@ -38205,7 +38205,7 @@ axolotlInternal.RecipientRecord = function() {
var i = group.numbers.indexOf(number);
if (i > -1) {
group.numbers.slice(i, 1);
group.numbers.splice(i, 1);
delete group.numberRegistrationIds[number];
return textsecure.storage.axolotl.putGroup(groupId, group).then(function() {
return group.numbers;

View file

@ -86,7 +86,7 @@
var i = group.numbers.indexOf(number);
if (i > -1) {
group.numbers.slice(i, 1);
group.numbers.splice(i, 1);
delete group.numberRegistrationIds[number];
return textsecure.storage.axolotl.putGroup(groupId, group).then(function() {
return group.numbers;