Skip to content

Commit

Permalink
fix(settings): apply correct conditions to expiration settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Antreesy committed Dec 8, 2023
1 parent 6adae61 commit 02066aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@
:title="t('spreed', 'Moderation')">
<ListableSettings :token="token" />
<LinkShareSettings ref="linkShareSettings" />
<ExpirationSettings :token="token" can-full-moderate />
<ExpirationSettings :token="token" can-moderate />
</NcAppSettingsSection>
<NcAppSettingsSection v-else
id="conversation-settings"
:title="t('spreed', 'Setup summary')">
<ExpirationSettings :token="token" />
<ExpirationSettings :token="token" :can-moderate="selfIsOwnerOrModerator" />
</NcAppSettingsSection>

<!-- Meeting: lobby and sip -->
Expand Down
4 changes: 2 additions & 2 deletions src/components/ConversationSettings/ExpirationSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
{{ t('spreed', 'Chat messages can be expired after a certain time. Note: Files shared in chat will not be deleted for the owner, but will no longer be shared in the conversation.') }}
</div>

<template v-if="canFullModerate">
<template v-if="canModerate">
<label for="moderation_settings_message_expiration" class="app-settings-section__label">
{{ t('spreed', 'Set message expiration') }}
</label>
Expand Down Expand Up @@ -68,7 +68,7 @@ export default {
default: null,
},
canFullModerate: {
canModerate: {
type: Boolean,
default: false,
},
Expand Down

0 comments on commit 02066aa

Please sign in to comment.