fix: Update conversation read status indicator logic (#5777)
This commit is contained in:
@@ -199,10 +199,6 @@ const actions = {
|
||||
}
|
||||
},
|
||||
|
||||
updateConversationRead({ commit }, timestamp) {
|
||||
commit(types.SET_CONVERSATION_LAST_SEEN, timestamp);
|
||||
},
|
||||
|
||||
updateMessage({ commit }, message) {
|
||||
commit(types.ADD_MESSAGE, message);
|
||||
},
|
||||
|
||||
@@ -91,9 +91,6 @@ const getters = {
|
||||
value => value.id === Number(conversationId)
|
||||
);
|
||||
},
|
||||
getConversationLastSeen: _state => {
|
||||
return _state.conversationLastSeen;
|
||||
},
|
||||
};
|
||||
|
||||
export default getters;
|
||||
|
||||
@@ -13,7 +13,6 @@ const state = {
|
||||
currentInbox: null,
|
||||
selectedChatId: null,
|
||||
appliedFilters: [],
|
||||
conversationLastSeen: null,
|
||||
};
|
||||
|
||||
// mutations
|
||||
@@ -34,9 +33,6 @@ export const mutations = {
|
||||
_state.allConversations = [];
|
||||
_state.selectedChatId = null;
|
||||
},
|
||||
[types.SET_CONVERSATION_LAST_SEEN](_state, timestamp) {
|
||||
_state.conversationLastSeen = timestamp;
|
||||
},
|
||||
[types.SET_ALL_MESSAGES_LOADED](_state) {
|
||||
const [chat] = getSelectedChatConversation(_state);
|
||||
Vue.set(chat, 'allMessagesLoaded', true);
|
||||
|
||||
Reference in New Issue
Block a user