Skip to content
Snippets Groups Projects

Fix the chat list order update

Merged Eugenij requested to merge eugenijm/pleroma-fe:fix-chat-list-order into develop
1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
+ 1
0
@@ -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)
}
Loading