Recency bump on own membership event.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -114,6 +114,12 @@ pub(super) async fn handle(
|
|||||||
let bump_stamp = timeline_pdus
|
let bump_stamp = timeline_pdus
|
||||||
.iter()
|
.iter()
|
||||||
.filter(|(_, pdu)| {
|
.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
|
DEFAULT_BUMP_TYPES
|
||||||
.binary_search(pdu.event_type())
|
.binary_search(pdu.event_type())
|
||||||
.is_ok()
|
.is_ok()
|
||||||
|
|||||||
Reference in New Issue
Block a user