diff options
| author | eugenijm <eugenijm@protonmail.com> | 2020-09-16 05:08:12 +0300 |
|---|---|---|
| committer | eugenijm <eugenijm@protonmail.com> | 2020-09-16 05:10:09 +0300 |
| commit | 92caaa2d7f8cbc74fe14430f9659b3b9d9113b55 (patch) | |
| tree | 0300d27f312fe660e1adedfaecef09f41bb1e54f | |
| parent | 679a1f5e1c0591bd1864b4ff5faa9233a0e53adc (diff) | |
Fix the chat list order and last message timestamp updates
| -rw-r--r-- | src/modules/chats.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/chats.js b/src/modules/chats.js index c7609018..aef16322 100644 --- a/src/modules/chats.js +++ b/src/modules/chats.js @@ -143,6 +143,7 @@ const chats = { const isNewMessage = (chat.lastMessage && chat.lastMessage.id) !== (updatedChat.lastMessage && updatedChat.lastMessage.id) chat.lastMessage = updatedChat.lastMessage chat.unread = updatedChat.unread + chat.updated_at = updatedChat.updated_at if (isNewMessage && chat.unread) { newChatMessageSideEffects(updatedChat) } |
