diff --git a/js/libtextsecure.js b/js/libtextsecure.js index 488c84e4..0bca9f1c 100644 --- a/js/libtextsecure.js +++ b/js/libtextsecure.js @@ -37132,7 +37132,7 @@ MessageReceiver.prototype.extend({ var promises = []; while (groupDetails !== undefined) { var promise = (function(groupDetails) { - groupDetails.id = getString(groupDetails.id); + groupDetails.id = groupDetails.id.toBinary(); if (groupDetails.active) { return textsecure.storage.groups.getGroup(groupDetails.id). then(function(existingGroup) { @@ -37229,7 +37229,7 @@ MessageReceiver.prototype.extend({ var promises = []; if (decrypted.group !== null) { - decrypted.group.id = getString(decrypted.group.id); + decrypted.group.id = decrypted.group.id.toBinary(); if (decrypted.group.type == textsecure.protobuf.GroupContext.Type.UPDATE) { if (decrypted.group.avatar !== null) { diff --git a/libtextsecure/message_receiver.js b/libtextsecure/message_receiver.js index ac5283f6..fd2b43e1 100644 --- a/libtextsecure/message_receiver.js +++ b/libtextsecure/message_receiver.js @@ -256,7 +256,7 @@ MessageReceiver.prototype.extend({ var promises = []; while (groupDetails !== undefined) { var promise = (function(groupDetails) { - groupDetails.id = getString(groupDetails.id); + groupDetails.id = groupDetails.id.toBinary(); if (groupDetails.active) { return textsecure.storage.groups.getGroup(groupDetails.id). then(function(existingGroup) { @@ -353,7 +353,7 @@ MessageReceiver.prototype.extend({ var promises = []; if (decrypted.group !== null) { - decrypted.group.id = getString(decrypted.group.id); + decrypted.group.id = decrypted.group.id.toBinary(); if (decrypted.group.type == textsecure.protobuf.GroupContext.Type.UPDATE) { if (decrypted.group.avatar !== null) {