mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Migrate schema to service ids
This commit is contained in:
committed by
Jamie Kyle
parent
71958f8a01
commit
8b0da36caa
@@ -4,9 +4,9 @@
|
||||
import type { ConversationAttributesType } from '../model-types';
|
||||
|
||||
export function isBlocked(attributes: ConversationAttributesType): boolean {
|
||||
const { e164, groupId, uuid } = attributes;
|
||||
if (uuid) {
|
||||
return window.storage.blocked.isUuidBlocked(uuid);
|
||||
const { e164, groupId, serviceId } = attributes;
|
||||
if (serviceId) {
|
||||
return window.storage.blocked.isServiceIdBlocked(serviceId);
|
||||
}
|
||||
|
||||
if (e164) {
|
||||
|
||||
Reference in New Issue
Block a user