diff options
author | Marco <marcoambrosini@pm.me> | 2022-04-22 16:54:48 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-22 16:54:48 +0300 |
commit | 24f6056636fd541ca4edaa2277933219fe817ad0 (patch) | |
tree | 86ab77491771b2e2ce5a6b3a163bcba5204adc24 | |
parent | c506cdb374a44ad63cec726d7a3074f127683663 (diff) | |
parent | e7d28294f54d462c849834b38e2c595dfbd3303e (diff) |
Merge pull request #7199 from nextcloud/bugfix/7188/open-chat-when-in-a-call
Open chat when in a call
-rw-r--r-- | src/components/RightSidebar/RightSidebar.vue | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/components/RightSidebar/RightSidebar.vue b/src/components/RightSidebar/RightSidebar.vue index f53ee577c..05a477ce1 100644 --- a/src/components/RightSidebar/RightSidebar.vue +++ b/src/components/RightSidebar/RightSidebar.vue @@ -242,6 +242,18 @@ export default { } }, + showChatInSidebar(chatInSidebar) { + if (chatInSidebar) { + this.activeTab = 'chat' + } else if (this.activeTab === 'chat') { + if (this.conversation.type === CONVERSATION.TYPE.ONE_TO_ONE) { + this.activeTab = 'shared-items' + } else { + this.activeTab = 'participants' + } + } + }, + token() { if (this.$refs.participantsTab) { this.$refs.participantsTab.$el.scrollTop = 0 |