mirror of
https://github.com/matrix-construct/construct
synced 2024-11-19 00:10:59 +01:00
modules/client/sync/rooms/timeline: Fix join event not updating client state.
This commit is contained in:
parent
f8c98015f8
commit
fa8bc645af
1 changed files with 9 additions and 2 deletions
|
@ -135,9 +135,16 @@ ircd::m::sync::room_timeline_linear(data &data)
|
||||||
// displayname and avatar changes).
|
// displayname and avatar changes).
|
||||||
if(is_own_join && !is_own_rejoin)
|
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};
|
bool ret{false}, limited{false};
|
||||||
|
|
Loading…
Reference in a new issue