From 77c3cccbc169598974f1db7f7a30af54cb5ed345 Mon Sep 17 00:00:00 2001 From: 7w1 Date: Wed, 1 Apr 2026 16:56:28 -0500 Subject: [PATCH] add dismiss button to messages --- .changeset/feat-dismiss-local-echo.md | 5 +++++ src/app/features/room/message/Message.tsx | 26 +++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 .changeset/feat-dismiss-local-echo.md diff --git a/.changeset/feat-dismiss-local-echo.md b/.changeset/feat-dismiss-local-echo.md new file mode 100644 index 000000000..4fa2adbb4 --- /dev/null +++ b/.changeset/feat-dismiss-local-echo.md @@ -0,0 +1,5 @@ +--- +default: minor +--- + +Add a "Dismiss" button to command response messages. diff --git a/src/app/features/room/message/Message.tsx b/src/app/features/room/message/Message.tsx index 4bfab3bbb..6a6a7340a 100644 --- a/src/app/features/room/message/Message.tsx +++ b/src/app/features/room/message/Message.tsx @@ -679,6 +679,7 @@ function MessageInternal( ); const MSG_CONTENT_STYLE = { maxWidth: '100%' }; + const isSableFeedback = mEvent.getId()?.startsWith('~sable-feedback-'); const msgContentJSX = ( )} + {isSableFeedback && ( + + + + Only you can see this. + + { + evt.preventDefault(); + evt.stopPropagation(); + const eventId = mEvent.getId(); + if (eventId) { + room.removeEvent(eventId); + room.emit(RoomEvent.LocalEchoUpdated, mEvent, room); + } + }} + > + Dismiss + + + )} );