From 6486a6b5ff15c43c3e4b413506f7870cd5fd7ac5 Mon Sep 17 00:00:00 2001 From: Valere Fedronic Date: Thu, 9 Apr 2026 13:08:08 +0200 Subject: [PATCH] Add user friendly capability text for `msc4039.download_file` (#32983) * Add user friendly capability test for `msc4039.download_file` * review: remove un-needed experimental copy --- apps/web/src/i18n/strings/en_EN.json | 1 + apps/web/src/widgets/CapabilityText.tsx | 3 +++ 2 files changed, 4 insertions(+) diff --git a/apps/web/src/i18n/strings/en_EN.json b/apps/web/src/i18n/strings/en_EN.json index 3fad87c427..3b20cda580 100644 --- a/apps/web/src/i18n/strings/en_EN.json +++ b/apps/web/src/i18n/strings/en_EN.json @@ -4003,6 +4003,7 @@ "change_name_this_room": "Change the name of this room", "change_topic_active_room": "Change the topic of your active room", "change_topic_this_room": "Change the topic of this room", + "download_file": "Download files from the media repository", "receive_membership_active_room": "See when people join, leave, or are invited to your active room", "receive_membership_this_room": "See when people join, leave, or are invited to this room", "remove_ban_invite_leave_active_room": "Remove, ban, or invite people to your active room, and make you leave", diff --git a/apps/web/src/widgets/CapabilityText.tsx b/apps/web/src/widgets/CapabilityText.tsx index c64e7ffa0f..5f5c8b9a74 100644 --- a/apps/web/src/widgets/CapabilityText.tsx +++ b/apps/web/src/widgets/CapabilityText.tsx @@ -57,6 +57,9 @@ export class CapabilityText { [MatrixCapabilities.MSC2931Navigate]: { [GENERIC_WIDGET_KIND]: _td("widget|capability|switch_room_message_user"), }, + [MatrixCapabilities.MSC4039DownloadFile]: { + [GENERIC_WIDGET_KIND]: _td("widget|capability|download_file"), + }, }; private static stateSendRecvCaps: SendRecvStaticCapText = {