feat: handle team changed specifically
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user