feat: handle team changed specifically

This commit is contained in:
Shivam Mishra
2025-02-03 17:25:01 +05:30
parent c18452f6b6
commit ea7e9dfaa2
@@ -29,6 +29,7 @@ class ActionCableConnector extends BaseActionCableConnector {
'notification.updated': this.onNotificationUpdated,
'conversation.read': this.onConversationRead,
'conversation.updated': this.onConversationUpdated,
'team.changed': this.onTeamChanged,
'account.cache_invalidated': this.onCacheInvalidate,
};
}
@@ -114,6 +115,11 @@ class ActionCableConnector extends BaseActionCableConnector {
this.fetchConversationStats();
};
onTeamChanged = data => {
this.app.$store.dispatch('updateConversation', data);
this.fetchConversationStats();
};
onTypingOn = ({ conversation, user }) => {
const conversationId = conversation.id;