summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaksim Sukharev <antreesy.web@gmail.com>2024-06-21 15:56:43 +0200
committerMaksim Sukharev <antreesy.web@gmail.com>2024-07-01 18:01:21 +0200
commitd5d51385e36f41cc18f006cad3797c84b3c391cd (patch)
treeeb2bae36552ee1b95dab5c900bf4a1578f12be0c
parent3d1ea98ca52af9328bc1ede09298e192e1a31cfa (diff)
fix(federation): update pending invites count on secondary tabs
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
-rw-r--r--src/components/LeftSidebar/LeftSidebar.vue1
-rw-r--r--src/store/conversationsStore.js1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/components/LeftSidebar/LeftSidebar.vue b/src/components/LeftSidebar/LeftSidebar.vue
index 59ec666cb..808cbc3bf 100644
--- a/src/components/LeftSidebar/LeftSidebar.vue
+++ b/src/components/LeftSidebar/LeftSidebar.vue
@@ -614,6 +614,7 @@ export default {
conversations: event.data.conversations,
withRemoving: event.data.withRemoving,
})
+ this.federationStore.updatePendingSharesCount(event.data.invites)
break
case 'update-nextcloud-talk-hash':
this.talkHashStore.setNextcloudTalkHash(event.data.hash)
diff --git a/src/store/conversationsStore.js b/src/store/conversationsStore.js
index 5b1906d79..febdd3db5 100644
--- a/src/store/conversationsStore.js
+++ b/src/store/conversationsStore.js
@@ -878,6 +878,7 @@ const actions = {
talkBroadcastChannel.postMessage({
message: 'update-conversations',
conversations: response.data.ocs.data,
+ invites: response.headers['x-nextcloud-talk-federation-invites'],
withRemoving: modifiedSince === 0,
})
return response