feat: use allConversations for filtered view

This commit is contained in:
Shivam Mishra
2025-09-19 15:01:45 +05:30
parent d06b66319e
commit bf400fb02e
3 changed files with 40 additions and 17 deletions
@@ -92,6 +92,12 @@ export const mutations = {
[types.EMPTY_ALL_CONVERSATION](_state) {
_state.allConversations = [];
_state.selectedChatId = null;
// Also clear all tab caches so UI renders empty state immediately
_state.conversationsByTab = {
me: [],
unassigned: [],
all: [],
};
},
[types.EMPTY_TAB_CONVERSATION](_state, tab) {
if (_state.conversationsByTab[tab]) {