event-actions: Do not get member unnecessarily
This commit is contained in:
parent
5fc08ef971
commit
6ebb231995
1 changed files with 1 additions and 2 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue