Skip to content

Commit

Permalink
Merge pull request #13046 from nextcloud/backport/13041/stable30
Browse files Browse the repository at this point in the history
  • Loading branch information
Antreesy authored Aug 20, 2024
2 parents 603d84a + 441adce commit 267d377
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/components/ConversationSettings/ConversationSettingsDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

<template v-if="!isBreakoutRoom">
<!-- Notifications settings and devices preview screen -->
<NcAppSettingsSection v-if="!isNoteToSelf"
<NcAppSettingsSection v-if="!isNoteToSelf && !isOneToOneFormer"
id="notifications"
:name="t('spreed', 'Personal')">
<NcCheckboxRadioSwitch v-if="showMediaSettingsToggle"
Expand All @@ -36,11 +36,11 @@

<NcAppSettingsSection id="conversation-settings"
:name="selfIsOwnerOrModerator ? t('spreed', 'Moderation') : t('spreed', 'Setup overview')">
<ListableSettings v-if="!isNoteToSelf && !isGuest" :token="token" :can-moderate="canFullModerate" />
<MentionsSettings v-if="!isNoteToSelf" :token="token" :can-moderate="canFullModerate" />
<ListableSettings v-if="!isNoteToSelf && !isGuest && !isOneToOne" :token="token" :can-moderate="canFullModerate" />
<MentionsSettings v-if="!isNoteToSelf && !isOneToOne" :token="token" :can-moderate="canFullModerate" />
<LinkShareSettings v-if="!isNoteToSelf" :token="token" :can-moderate="canFullModerate" />
<RecordingConsentSettings v-if="!isNoteToSelf && recordingConsentAvailable" :token="token" :can-moderate="selfIsOwnerOrModerator" />
<ExpirationSettings :token="token" :can-moderate="selfIsOwnerOrModerator" />
<RecordingConsentSettings v-if="!isNoteToSelf && !isOneToOneFormer && recordingConsentAvailable" :token="token" :can-moderate="selfIsOwnerOrModerator" />
<ExpirationSettings v-if="!isOneToOneFormer" :token="token" :can-moderate="selfIsOwnerOrModerator" />
<BanSettings v-if="supportBanV1 && canFullModerate" :token="token" />
</NcAppSettingsSection>

Expand Down Expand Up @@ -173,6 +173,14 @@ export default {
return this.conversation.type === CONVERSATION.TYPE.NOTE_TO_SELF
},

isOneToOne() {
return this.conversation.type === CONVERSATION.TYPE.ONE_TO_ONE || this.isOneToOneFormer
},

isOneToOneFormer() {
return this.conversation.type === CONVERSATION.TYPE.ONE_TO_ONE_FORMER
},

isGuest() {
return this.$store.getters.isActorGuest()
},
Expand Down

0 comments on commit 267d377

Please sign in to comment.