Fix signal connection count

This commit is contained in:
Fedor Indutny 2023-12-14 00:58:56 +01:00 committed by GitHub
parent 4dfbb25c71
commit f1665c65d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -3,7 +3,9 @@
import type { ConversationAttributesType } from '../model-types';
export function isBlocked(attributes: ConversationAttributesType): boolean {
export function isBlocked(
attributes: Pick<ConversationAttributesType, 'e164' | 'groupId' | 'serviceId'>
): boolean {
const { e164, groupId, serviceId } = attributes;
if (serviceId) {
return window.storage.blocked.isServiceIdBlocked(serviceId);