From 7e9c0e239410f1bc1a6f684b783e6579a8825f0a Mon Sep 17 00:00:00 2001 From: lilia Date: Thu, 16 Oct 2014 13:38:33 -0700 Subject: [PATCH] Group ids should be strings (or stringables) ArrayBuffer was a bad choice. --- js/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/helpers.js b/js/helpers.js index 27cbd42097..ae12ce4178 100644 --- a/js/helpers.js +++ b/js/helpers.js @@ -423,7 +423,7 @@ window.textsecure.storage = function() { } while (groupId === undefined || textsecure.storage.getEncrypted("group" + groupId) !== undefined) { - groupId = textsecure.crypto.getRandomBytes(16); + groupId = getString(textsecure.crypto.getRandomBytes(16)); } var me = textsecure.utils.unencodeNumber(textsecure.storage.getUnencrypted("number_id"))[0];