Recency bump on own membership event.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
b483306367
commit
a20ddcd586
1 changed files with 6 additions and 0 deletions
|
|
@ -114,6 +114,12 @@ pub(super) async fn handle(
|
|||
let bump_stamp = timeline_pdus
|
||||
.iter()
|
||||
.filter(|(_, pdu)| {
|
||||
if *pdu.event_type() == TimelineEventType::RoomMember {
|
||||
return pdu
|
||||
.state_key()
|
||||
.is_some_and(is_equal_to!(sender_user.as_str()));
|
||||
}
|
||||
|
||||
DEFAULT_BUMP_TYPES
|
||||
.binary_search(pdu.event_type())
|
||||
.is_ok()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue