From 6ebb231995531f34ed196c5b9a9ed27fa345ac04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Fri, 15 Sep 2023 15:06:12 +0200 Subject: [PATCH] event-actions: Do not get member unnecessarily --- src/session/view/content/room_history/event_actions.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/session/view/content/room_history/event_actions.rs b/src/session/view/content/room_history/event_actions.rs index c553c06d..47d8e395 100644 --- a/src/session/view/content/room_history/event_actions.rs +++ b/src/session/view/content/room_history/event_actions.rs @@ -128,8 +128,7 @@ where .user() .map(|user| user.user_id()) .unwrap(); - let own_user = event.room().members().get_or_create(own_user_id); - let is_from_own_user = event.sender() == own_user; + let is_from_own_user = event.sender_id() == own_user_id; // Remove message fn update_remove_action(