Extra validations for storage service

This commit is contained in:
Josh Perez
2021-04-09 13:12:05 -07:00
committed by GitHub
parent e47b00a33c
commit a2a361f0bf
2 changed files with 99 additions and 80 deletions
+4
View File
@@ -506,6 +506,10 @@ export async function mergeGroupV1Record(
conversation.idForLogging()
);
} else {
if (groupV1Record.id.byteLength !== 16) {
throw new Error('Not a valid gv1');
}
conversation = await window.ConversationController.getOrCreateAndWait(
groupId,
'group'