From f1fb7ba252e905f09fe5e83ffc3577aa9ec2d8f6 Mon Sep 17 00:00:00 2001 From: RoyceDa Date: Tue, 24 Feb 2026 18:31:04 +0200 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BA=D1=80=D1=8B=D0=B2=D0=B0=D0=B5?= =?UTF-8?q?=D0=BC=20=D1=81=D1=87=D0=B5=D1=82=D1=87=D0=B8=D0=BA=20=D0=BD?= =?UTF-8?q?=D0=B5=D0=BF=D1=80=D0=BE=D1=87=D0=B8=D1=82=D0=B0=D0=BD=D0=BD?= =?UTF-8?q?=D1=8B=D1=85=20=D0=BF=D1=80=D0=B8=20=D1=81=D0=B8=D0=BD=D1=85?= =?UTF-8?q?=D1=80=D0=BE=D0=BD=D0=B8=D0=B7=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/Dialog/Dialog.tsx | 5 ++++- app/servers.ts | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/components/Dialog/Dialog.tsx b/app/components/Dialog/Dialog.tsx index d83ed15..9c4137c 100644 --- a/app/components/Dialog/Dialog.tsx +++ b/app/components/Dialog/Dialog.tsx @@ -18,6 +18,8 @@ import { useDialogInfo } from "@/app/providers/DialogListProvider/useDialogInfo" import { useDialogContextMenu } from "@/app/hooks/useDialogContextMenu"; import { useDialogPin } from "@/app/providers/DialogStateProvider.tsx/useDialogPin"; import { useDialogMute } from "@/app/providers/DialogStateProvider.tsx/useDialogMute"; +import { useProtocolState } from "@/app/providers/ProtocolProvider/useProtocolState"; +import { ProtocolState } from "@/app/providers/ProtocolProvider/ProtocolProvider"; export interface DialogProps extends DialogRow { onClickDialog: (dialog: string) => void; @@ -51,6 +53,7 @@ export function Dialog(props : DialogProps) { const isInCurrentDialog = props.dialog_id == сurrentDialogPublicKeyView; const currentDialogColor = computedTheme == 'dark' ? '#2a6292' :'#438fd1'; + const [protocolState] = useProtocolState(); usePacket(0x0B, (packet : PacketTyping) => { if(packet.getFromPublicKey() == opponent && packet.getToPublicKey() == publicKey && !fromMe){ @@ -153,7 +156,7 @@ export function Dialog(props : DialogProps) { {!loading && (lastMessage.delivered == DeliveredMessageState.ERROR || (!isMessageDeliveredByTime(lastMessage.timestamp, lastMessage.attachments.length) && lastMessage.delivered != DeliveredMessageState.DELIVERED)) && ( )} - {unreaded > 0 && !lastMessageFromMe && 0 && !lastMessageFromMe && protocolState != ProtocolState.SYNCHRONIZATION && {unreaded > 99 ? '99+' : unreaded}} diff --git a/app/servers.ts b/app/servers.ts index 53d4fca..aa52cbb 100644 --- a/app/servers.ts +++ b/app/servers.ts @@ -1,8 +1,8 @@ export const SERVERS = [ //'wss://cdn.rosetta-im.com', //'ws://10.211.55.2:3000', - 'ws://127.0.0.1:3000', - //'wss://wss.rosetta.im' + //'ws://127.0.0.1:3000', + 'wss://wss.rosetta.im' ]; export function selectServer(): string {