mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-15 21:26:50 +00:00
Recency bump on own membership event.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
b483306367
commit
a20ddcd586
1 file changed
+6
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user