Skip to content

Commit

Permalink
fixup! feat: Add support for MSC4171
Browse files Browse the repository at this point in the history
  • Loading branch information
poljar committed Dec 3, 2024
1 parent 3c12242 commit a882738
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crates/matrix-sdk-base/src/rooms/normal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -700,8 +700,8 @@ impl Room {

// Construct a filter that is specific to this own user id, set of member hints,
// and accepts a `RoomHero` type.
let heroes_filter =
|hero: &&RoomHero| heroes_filter(own_user_id, &member_hints)(&hero.user_id);
let heroes_filter = heroes_filter(own_user_id, &member_hints);
let heroes_filter = |hero: &&RoomHero| heroes_filter(&hero.user_id);

for hero in heroes.iter().filter(heroes_filter) {
if let Some(display_name) = &hero.display_name {
Expand Down Expand Up @@ -734,8 +734,8 @@ impl Room {

// Construct a filter that is specific to this own user id, set of member hints,
// and accepts a `RoomMember` type.
let heroes_filter =
|u: &RoomMember| heroes_filter(self.own_user_id(), &member_hints)(u.user_id());
let heroes_filter = heroes_filter(&self.own_user_id, &member_hints);
let heroes_filter = |u: &RoomMember| heroes_filter(u.user_id());

let mut members = self.members(RoomMemberships::JOIN | RoomMemberships::INVITE).await?;

Expand Down

0 comments on commit a882738

Please sign in to comment.