From d8b67008bc5e5d05a7f622d5ca44bd05d7fc93fc Mon Sep 17 00:00:00 2001 From: Milad Raeisi Date: Fri, 27 Sep 2024 18:10:13 +0400 Subject: [PATCH] Update chat.service.ts --- src/app/components/chat/chat.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/components/chat/chat.service.ts b/src/app/components/chat/chat.service.ts index 3fe3e6e..2a337bd 100644 --- a/src/app/components/chat/chat.service.ts +++ b/src/app/components/chat/chat.service.ts @@ -544,8 +544,8 @@ export class ChatService implements OnDestroy { // } const newChat: Chat = { id: id, - contact: contact || { pubKey: id, name: "Unknown", picture: "/images/avatars/avatar-placeholder.png" }, - lastMessage: '...', + contact: contact || { pubKey: id, name: contact.name, picture: contact.picture }, + lastMessage: 'new chat...', lastMessageAt: Math.floor(Date.now() / 1000).toString(), messages: [] };