From 76d2de4338a676eed43104a09ab5886ccae57a82 Mon Sep 17 00:00:00 2001 From: Kirill Schmidt Date: Sat, 3 Sep 2022 20:23:34 +0200 Subject: [PATCH] event-actions: Add toast for copied messages Part-of: --- src/session/room/event_actions.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/session/room/event_actions.rs b/src/session/room/event_actions.rs index 7128486d..046683b6 100644 --- a/src/session/room/event_actions.rs +++ b/src/session/room/event_actions.rs @@ -143,6 +143,7 @@ where "copy-text", clone!(@weak self as widget => move |_, _| { widget.clipboard().set_text(&text_message.body); + toast!(widget, gettext("Message copied to clipboard")); }) ); } @@ -173,6 +174,7 @@ where let display_name = event.sender().display_name(); let message = display_name + " " + &message.body; widget.clipboard().set_text(&message); + toast!(widget, gettext("Message copied to clipboard")); }) ); }