From acdb4d3bcba7d630b72dfdfaf73ef311946f9c40 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Tue, 27 Jul 2021 10:25:51 -0400 Subject: [PATCH] fix: last seen timestamp and removing useless echo --- src/app/chat/event_handling.nim | 1 - ui/app/AppLayouts/Chat/ChatColumn/User.qml | 1 - ui/app/AppLayouts/Chat/ChatColumn/UserList.qml | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/app/chat/event_handling.nim b/src/app/chat/event_handling.nim index 6f01242c48..25b36c1398 100644 --- a/src/app/chat/event_handling.nim +++ b/src/app/chat/event_handling.nim @@ -12,7 +12,6 @@ proc handleChatEvents(self: ChatController) = let evArgs = MsgsLoadedArgs(e) self.view.pushMessages(evArgs.messages) for statusUpdate in evArgs.statusUpdates: - echo "updating member visibility", $statusUpdate self.view.communities.updateMemberVisibility(statusUpdate) # Display emoji reactions diff --git a/ui/app/AppLayouts/Chat/ChatColumn/User.qml b/ui/app/AppLayouts/Chat/ChatColumn/User.qml index 1e7cd47fa9..e82bd7878c 100644 --- a/ui/app/AppLayouts/Chat/ChatColumn/User.qml +++ b/ui/app/AppLayouts/Chat/ChatColumn/User.qml @@ -82,7 +82,6 @@ Item { radius: 20 color: { let lastSeenMinutesAgo = (currentTime/1000 - parseInt(lastSeen)) / 60 - if (!chatsModel.isOnline) { return Style.current.darkGrey } diff --git a/ui/app/AppLayouts/Chat/ChatColumn/UserList.qml b/ui/app/AppLayouts/Chat/ChatColumn/UserList.qml index a78c448a1e..4bdae31159 100644 --- a/ui/app/AppLayouts/Chat/ChatColumn/UserList.qml +++ b/ui/app/AppLayouts/Chat/ChatColumn/UserList.qml @@ -66,7 +66,7 @@ Item { publicKey: model.publicKey name: model.userName identicon: model.identicon - lastSeen: model.lastSeen + lastSeen: model.lastSeen / 1000 currentTime: root.currentTime } }