Skip to content

Commit

Permalink
fix(federation): update pending invites count on secondary tabs
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <[email protected]>
  • Loading branch information
Antreesy committed Jun 21, 2024
1 parent eacb114 commit e186594
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/LeftSidebar/LeftSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions src/store/conversationsStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e186594

Please sign in to comment.