Migrate schema to service ids

This commit is contained in:
Fedor Indutny 2023-08-16 22:54:39 +02:00 committed by Jamie Kyle
parent 71958f8a01
commit 8b0da36caa
258 changed files with 4795 additions and 2613 deletions

View file

@ -36,11 +36,11 @@ export function shouldShowInvalidMessageToast(
return { toastType: ToastType.InvalidConversation };
}
const { e164, uuid } = conversationAttributes;
const { e164, serviceId } = conversationAttributes;
if (
isDirectConversation(conversationAttributes) &&
((e164 && window.storage.blocked.isBlocked(e164)) ||
(uuid && window.storage.blocked.isUuidBlocked(uuid)))
(serviceId && window.storage.blocked.isServiceIdBlocked(serviceId)))
) {
return { toastType: ToastType.Blocked };
}