Merge branch 'fix-chat-list-order' into 'develop'
Fix the chat list order update Closes #955 See merge request pleroma/pleroma-fe!1234
This commit is contained in:
commit
c00c20a31f
1 changed files with 1 additions and 0 deletions
|
@ -143,6 +143,7 @@ const chats = {
|
||||||
const isNewMessage = (chat.lastMessage && chat.lastMessage.id) !== (updatedChat.lastMessage && updatedChat.lastMessage.id)
|
const isNewMessage = (chat.lastMessage && chat.lastMessage.id) !== (updatedChat.lastMessage && updatedChat.lastMessage.id)
|
||||||
chat.lastMessage = updatedChat.lastMessage
|
chat.lastMessage = updatedChat.lastMessage
|
||||||
chat.unread = updatedChat.unread
|
chat.unread = updatedChat.unread
|
||||||
|
chat.updated_at = updatedChat.updated_at
|
||||||
if (isNewMessage && chat.unread) {
|
if (isNewMessage && chat.unread) {
|
||||||
newChatMessageSideEffects(updatedChat)
|
newChatMessageSideEffects(updatedChat)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue