mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Migrate schema to service ids
This commit is contained in:
committed by
Jamie Kyle
parent
71958f8a01
commit
8b0da36caa
@@ -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 };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user