Group ids should be strings (or stringables)

ArrayBuffer was a bad choice.
pull/749/head
lilia 11 years ago
parent 6db3eeb52e
commit 7e9c0e2394

@ -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];

Loading…
Cancel
Save