commit: 5b56b6b9fdd9ad82a8f1c24d03024be0e7902c80
parent d22b5bec57de6b978824fedc4253cbb8b3a117fd
Author: tusooa <tusooa@kazv.moe>
Date: Tue, 17 Jan 2023 19:55:16 -0500
Populate user card on receiving chats
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/src/modules/chats.js b/src/modules/chats.js
@@ -65,6 +65,7 @@ const chats = {
const newChatMessageSideEffects = (chat) => {
maybeShowChatNotification(store, chat)
}
+ commit('addNewUsers', chats.map(k => k.account).filter(k => k))
commit('addNewChats', { dispatch, chats, rootGetters, newChatMessageSideEffects })
},
updateChat ({ commit }, { chat }) {