0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-10-01 05:08:59 +02:00

modules/client/sync/rooms/timeline: Fix join event not updating client state.

This commit is contained in:
Jason Volk 2020-04-20 17:40:14 -07:00
parent f8c98015f8
commit fa8bc645af

View file

@ -135,9 +135,16 @@ ircd::m::sync::room_timeline_linear(data &data)
// displayname and avatar changes).
if(is_own_join && !is_own_rejoin)
{
const scope_restore range_first
const event::idx range_first
{
data.range.first, last_membership_state_idx
last_membership_state_idx?
last_membership_state_idx + 1: // start after last state
last_membership_state_idx // 0 (full initial sync).
};
const scope_restore data_range_first
{
data.range.first, range_first
};
bool ret{false}, limited{false};