Fix compile error: use bytesToUuid in calling service

This commit is contained in:
Evan Hahn 2021-09-24 11:32:01 -05:00 committed by GitHub
parent 9aa0de5b6c
commit 7adfd1a4e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2024,9 +2024,7 @@ export class CallingClass {
conversationId: string, conversationId: string,
creatorBytes: undefined | Readonly<Uint8Array> creatorBytes: undefined | Readonly<Uint8Array>
): void { ): void {
const creatorUuid = creatorBytes const creatorUuid = creatorBytes ? bytesToUuid(creatorBytes) : undefined;
? arrayBufferToUuid(typedArrayToArrayBuffer(creatorBytes))
: undefined;
const creatorConversation = window.ConversationController.get(creatorUuid); const creatorConversation = window.ConversationController.get(creatorUuid);
if (creatorConversation && isMe(creatorConversation.attributes)) { if (creatorConversation && isMe(creatorConversation.attributes)) {
return; return;