diff options
Diffstat (limited to 'src/components/RightSidebar/RightSidebar.vue')
-rw-r--r-- | src/components/RightSidebar/RightSidebar.vue | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/components/RightSidebar/RightSidebar.vue b/src/components/RightSidebar/RightSidebar.vue index 93e876896..97df245eb 100644 --- a/src/components/RightSidebar/RightSidebar.vue +++ b/src/components/RightSidebar/RightSidebar.vue @@ -41,7 +41,7 @@ </template> <ChatView :is-visible="opened" /> </NcAppSidebarTab> - <NcAppSidebarTab v-if="(getUserId || isModeratorOrUser) && !isOneToOne" + <NcAppSidebarTab v-if="showParticipantsTab" id="participants" ref="participantsTab" :order="2" @@ -266,6 +266,14 @@ export default { && (this.breakoutRoomsConfigured || this.conversation.breakoutRoomMode === CONVERSATION.BREAKOUT_ROOM_MODE.FREE || this.conversation.objectType === 'room') }, + showParticipantsTab() { + return (this.getUserId || this.isModeratorOrUser) && !this.isOneToOne && !this.isNoteToSelf + }, + + isNoteToSelf() { + return this.conversation.type === CONVERSATION.TYPE.NOTE_TO_SELF + }, + breakoutRoomsText() { return t('spreed', 'Breakout rooms') }, @@ -277,7 +285,7 @@ export default { this.conversationName = this.conversation.displayName } - if (newConversation.token === oldConversation.token || this.isOneToOne) { + if (newConversation.token === oldConversation.token || !this.showParticipantsTab) { return } @@ -294,10 +302,10 @@ export default { } }, - isOneToOne: { + showParticipantsTab: { immediate: true, handler(value) { - if (value) { + if (!value) { this.activeTab = 'shared-items' } }, |