Skip to content
Snippets Groups Projects
Commit c00c20a3 authored by Shpuld Shpludson's avatar Shpuld Shpludson
Browse files

Merge branch 'fix-chat-list-order' into 'develop'

Fix the chat list order update

Closes #955

See merge request pleroma/pleroma-fe!1234
parents 679a1f5e 92caaa2d
No related branches found
No related tags found
No related merge requests found
......@@ -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)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment