Add PduCount value to userroomid/roomuserid_joined; move PduCount to argument for update_membership.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-10-01 23:01:57 +00:00
parent eda45e445c
commit f1c2548807
8 changed files with 55 additions and 26 deletions

View File

@@ -12,7 +12,7 @@ use tuwunel_core::{
Event, PduEvent, Result, err,
error::inspect_debug_log,
implement,
matrix::{RoomVersionRules, StateKey, TypeStateKey, room_version},
matrix::{PduCount, RoomVersionRules, StateKey, TypeStateKey, room_version},
result::{AndThenRef, FlatOk},
state_res::{StateMap, auth_types_for_event},
trace,
@@ -126,6 +126,7 @@ pub async fn force_state(
return Ok(());
};
let count = self.services.globals.next_count();
self.services
.state_cache
.update_membership(
@@ -136,6 +137,7 @@ pub async fn force_state(
None,
None,
false,
PduCount::Normal(*count),
)
.await
},