From d3c4423b1771775492d79c18cb9f470e2f0f1a7a Mon Sep 17 00:00:00 2001 From: 10G Meow <10gmeow@gmail.com> Date: Sun, 25 Feb 2024 13:19:43 +0200 Subject: [PATCH] Room details: Message history UX improvement --- src/assets/translations/en.json | 19 ++-- src/components/MessageRetentionDialog.vue | 129 +++------------------- src/components/RoomInfo.vue | 43 ++++++-- src/components/roomInfoMixin.js | 46 +++++--- 4 files changed, 91 insertions(+), 146 deletions(-) diff --git a/src/assets/translations/en.json b/src/assets/translations/en.json index 43b3e4d..173a8bc 100644 --- a/src/assets/translations/en.json +++ b/src/assets/translations/en.json @@ -314,20 +314,15 @@ "download_chat": "Download chat", "read_only_room": "Read only room", "read_only_room_info": "Only admins and moderators are allowed to send to the room", - "message_retention": "Disappearing messages", - "message_retention_info": "You can set a timeout for automatically removing messages from the room.\nNote: the server must support this feature.", + "message_retention": "Message History", + "message_retention_info": "Messages sent within this time frame are viewable by anyone with the link.", "message_retention_none": "Off", + "message_retention_4_week": "4 weeks", + "message_retention_2_week": "2 weeks", + "message_retention_1_week": "1 week", + "message_retention_1_day": "1 day", + "message_retention_8_hours": "8 hours", "message_retention_1_hour": "1 Hour", - "message_retention_1_day": "1 Day", - "message_retention_1_week": "1 Week", - "message_retention_30_days": "30 Days", - "message_retention_365_days": "365 Days", - "message_retention_other": "Other", - "message_retention_other_seconds": "{count} Seconds", - "message_retention_other_seconds_unit": "Seconds", - "message_retention_other_required": "Value can not be empty", - "message_retention_other_too_small": "Value must be at least {count} seconds", - "message_retention_other_too_large": "Value can be at most {count} seconds", "make_public": "Make Public", "make_public_warning": "warning: Full message history will be visible to new participants", "direct_link": "My Direct Link", diff --git a/src/components/MessageRetentionDialog.vue b/src/components/MessageRetentionDialog.vue index 4792e24..8ebb7ce 100644 --- a/src/components/MessageRetentionDialog.vue +++ b/src/components/MessageRetentionDialog.vue @@ -1,42 +1,26 @@