MKKPYGI6BVBTHXXEODG2ZWFNK4243325V7DAIHHT5FE5SQWANS5AC
KSXPBDU3XKOASLRN7TCIOFN7WE5O5JZC5NHDT77CYNY2OH6CI3GQC
ZBMYYG7IVKZNNBZFGATRKXRVV2SDHIZ5FJG343POPMMK3S2PN22AC
BPTGTWCABG7ZZBUXAPMUNSEET6Q55KG2NMGVZMVKUKYOWMHIF64QC
UG3UX6RR3RM2TXUPO5XGM7UUMS5MMIOF2T5OU42Y7KTIDTLCX5YQC
T4NU6NAZKVJ2ZSJZW6OWELN2ACVN5QACFDR2LECD6RNMM4JVMMNAC
state.update(&config, initial_sync.rooms);
state.update(&config, initial_sync.rooms, false);
state.update(&config, res.rooms);
state.update(&config, res.rooms, true);
fn update(&self, config: &Config, rooms: Rooms) {
fn update(&self, config: &Config, rooms: Rooms, state_fresh: bool) {
self.update_room(&mut txn, &config, id, room);
self.update_room(&mut txn, &config, id, room, state_fresh);
state_fresh: bool,
self.handle_event(txn, config, &id, event.json());
self.handle_event(txn, config, &id, event.json(), state_fresh);
self.handle_event(txn, config, &id, event.json(), true);
freshen: bool,
self.refresh_user_inner(txn, room, &event.sender);
self.refresh_user_inner(txn, room, &event.sender, freshen);
self.refresh_user_inner(&mut txn, room, user);
self.refresh_user_inner(&mut txn, room, user, true);
fn refresh_user_inner(&self, txn: &mut heed::RwTxn<'_, '_>, room: &RoomId, user: &UserId) {
fn refresh_user_inner( &self, txn: &mut heed::RwTxn<'_, '_>, room: &RoomId, user: &UserId, freshen: bool, ) {
fn refresh_user_inner(
&self,
txn: &mut heed::RwTxn<'_, '_>,
room: &RoomId,
user: &UserId,
) {
if prev_time.is_some() && !freshen { return; }
if prev_time.is_some() && !freshen {
return;
}