From a640e6dcc813f29c877ceccd45674a99d5ba2e89 Mon Sep 17 00:00:00 2001 From: Seth Falco Date: Sat, 16 Dec 2023 11:31:59 +0000 Subject: [PATCH] room-history: disable context menu for redacted messages --- src/session/view/content/room_history/item_row.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/session/view/content/room_history/item_row.rs b/src/session/view/content/room_history/item_row.rs index 9f060f9a..af531d4d 100644 --- a/src/session/view/content/room_history/item_row.rs +++ b/src/session/view/content/room_history/item_row.rs @@ -119,7 +119,11 @@ mod imp { fn menu_opened(&self) { let obj = self.obj(); - let Some(event) = obj.item().and_downcast::() else { + let Some(event) = obj + .item() + .and_downcast::() + .filter(|e| !e.is_redacted()) + else { obj.set_popover(None); return; };