Fix the chat list order and last message timestamp updates
このコミットが含まれているのは:
コミット
92caaa2d7f
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
読み込み中…
新しいイシューから参照