Skip to content

Commit 382b0d1

Browse files
max65482backportbot[bot]
authored andcommitted
fix: hide message expiration settings when not supported by server
Signed-off-by: Maximilian Martin <[email protected]>
1 parent 60d0daa commit 382b0d1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/components/ConversationSettings/ConversationSettingsDialog.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<MentionsSettings v-if="!isNoteToSelf && !isOneToOne" :token="token" :can-moderate="canFullModerate" />
4141
<LinkShareSettings v-if="!isNoteToSelf" :token="token" :can-moderate="canFullModerate" />
4242
<RecordingConsentSettings v-if="!isNoteToSelf && !isOneToOneFormer && recordingConsentAvailable" :token="token" :can-moderate="selfIsOwnerOrModerator" />
43-
<ExpirationSettings v-if="!isOneToOneFormer" :token="token" :can-moderate="selfIsOwnerOrModerator" />
43+
<ExpirationSettings v-if="!isOneToOneFormer && hasMessageExpirationFeature" :token="token" :can-moderate="selfIsOwnerOrModerator" />
4444
<BanSettings v-if="supportBanV1 && canFullModerate" :token="token" />
4545
</NcAppSettingsSection>
4646

@@ -268,6 +268,10 @@ export default {
268268
recordingConsentRequired() {
269269
return this.conversation.recordingConsent === CALL.RECORDING_CONSENT.ENABLED
270270
},
271+
272+
hasMessageExpirationFeature() {
273+
return hasTalkFeature(this.token, 'message-expiration')
274+
},
271275
},
272276
273277
beforeMount() {

0 commit comments

Comments
 (0)