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 {