Group ids should be strings (or stringables)

ArrayBuffer was a bad choice.
This commit is contained in:
lilia 2014-10-16 13:38:33 -07:00
parent 6db3eeb52e
commit 7e9c0e2394

View file

@ -423,7 +423,7 @@ window.textsecure.storage = function() {
} }
while (groupId === undefined || textsecure.storage.getEncrypted("group" + groupId) !== undefined) { 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]; var me = textsecure.utils.unencodeNumber(textsecure.storage.getUnencrypted("number_id"))[0];