From 032f92f8a2841292a5be5c633998cfcb3e62b896 Mon Sep 17 00:00:00 2001 From: Royce59 Date: Sat, 11 Apr 2026 11:51:21 +0200 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=B8=D0=BD=D0=B4=D0=B8=D0=BA=D0=B0?= =?UTF-8?q?=D1=82=D0=BE=D1=80=D0=B0=20=D0=BD=D0=B5=D0=BF=D1=80=D0=BE=D1=87?= =?UTF-8?q?=D0=B8=D1=82=D0=B0=D0=BD=D0=BD=D1=8B=D1=85=20=D0=B2=20=D0=B4?= =?UTF-8?q?=D0=B8=D0=B0=D0=BB=D0=BE=D0=B3=D0=B0=D1=85=20=D0=B3=D1=80=D1=83?= =?UTF-8?q?=D0=BF=D0=BF=D1=8B=20=D0=BF=D1=80=D0=B8=20=D1=81=D0=B8=D0=BD?= =?UTF-8?q?=D1=85=D1=80=D0=BE=D0=BD=D0=B8=D0=B7=D0=B0=D1=86=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/GroupDialog/GroupDialog.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/components/GroupDialog/GroupDialog.tsx b/app/components/GroupDialog/GroupDialog.tsx index 5278e40..c81a124 100644 --- a/app/components/GroupDialog/GroupDialog.tsx +++ b/app/components/GroupDialog/GroupDialog.tsx @@ -17,6 +17,8 @@ import { useDialogContextMenu } from "@/app/hooks/useDialogContextMenu"; import { useDialogMute } from "@/app/providers/DialogStateProvider.tsx/useDialogMute"; import { useDialogPin } from "@/app/providers/DialogStateProvider.tsx/useDialogPin"; import { useMentions } from "@/app/providers/DialogStateProvider.tsx/useMentions"; +import { useProtocolState } from "@/app/providers/ProtocolProvider/useProtocolState"; +import { ProtocolState } from "@/app/providers/ProtocolProvider/ProtocolProvider"; export interface DialogProps extends DialogRow { onClickDialog: (dialog: string) => void; @@ -54,6 +56,7 @@ export function GroupDialog(props : DialogProps) { const currentDialogColor = computedTheme == 'dark' ? '#2a6292' :'#438fd1'; const {openContextMenu} = useDialogContextMenu(); const {isMentioned} = useMentions(); + const [protocolState] = useProtocolState(); useEffect(() => { @@ -156,7 +159,7 @@ export function GroupDialog(props : DialogProps) { {!loading && (lastMessage.delivered == DeliveredMessageState.ERROR || (!isMessageDeliveredByTime(lastMessage.timestamp, lastMessage.attachments.length) && lastMessage.delivered != DeliveredMessageState.DELIVERED)) && ( )} - {unreaded > 0 && !lastMessageFromMe && !isMentioned(props.dialog_id) && 0 && !lastMessageFromMe && protocolState != ProtocolState.SYNCHRONIZATION && !isMentioned(props.dialog_id) && {unreaded > 99 ? '99+' : unreaded}}