Browse Source

Populate user card on receiving chats

tusooa 2 years ago
parent
commit
5b56b6b9fd
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/modules/chats.js

+ 1 - 0
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 }) {