diff options
author | Joas Schilling <coding@schilljs.com> | 2019-12-12 15:06:06 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-12-13 21:05:27 +0100 |
commit | 3e08ffe6ee87044c8a9987d26628aba930c373f7 (patch) | |
tree | 0d9640a81fa2a2dce6f40301267a77534a5e6d58 /src/components/LeftSidebar/ConversationsList/ConversationsList.vue | |
parent | 0637a13eb1c8c107db909d023c70fa15ed318dde (diff) |
Refresh the conversation list correctly on the store via EventBus
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/components/LeftSidebar/ConversationsList/ConversationsList.vue')
-rw-r--r-- | src/components/LeftSidebar/ConversationsList/ConversationsList.vue | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/LeftSidebar/ConversationsList/ConversationsList.vue b/src/components/LeftSidebar/ConversationsList/ConversationsList.vue index e8549576e..95fd92bfa 100644 --- a/src/components/LeftSidebar/ConversationsList/ConversationsList.vue +++ b/src/components/LeftSidebar/ConversationsList/ConversationsList.vue @@ -78,6 +78,10 @@ export default { joinConversation(to.params.token) } }) + + EventBus.$on('shouldRefreshConversations', () => { + this.fetchConversations() + }) }, methods: { sortConversations(conversation1, conversation2) { |