Skip to content

Commit

Permalink
fix(settings): Remove notification settings for guests
Browse files Browse the repository at this point in the history
Signed-off-by: Joas Schilling <coding@schilljs.com>
  • Loading branch information
nickvergessen committed Nov 22, 2023
1 parent 194f1fe commit 90e520a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
{{ t('spreed', 'Always show the device preview screen before joining a call in this conversation.') }}
</NcCheckboxRadioSwitch>

<NotificationsSettings :conversation="conversation" />
<NotificationsSettings v-if="!isGuest" :conversation="conversation" />
</NcAppSettingsSection>

<NcAppSettingsSection v-if="canFullModerate"
Expand Down Expand Up @@ -173,6 +173,10 @@ export default {
return this.conversation.canEnableSIP
},
isGuest() {
return this.$store.getters.getActorType() === 'guests'
},
token() {
return this.$store.getters.getConversationSettingsToken()
|| this.$store.getters.getToken()
Expand Down

0 comments on commit 90e520a

Please sign in to comment.