mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
modules/client/sync/rooms/account_data: Ensure apropos() hits the linear event coming through.
This commit is contained in:
parent
db58b07ddc
commit
881d3116cc
1 changed files with 3 additions and 1 deletions
|
@ -110,6 +110,7 @@ ircd::m::sync::room_account_data_linear_events(data &data,
|
|||
};
|
||||
|
||||
const scope_restore room__{data.room, &room};
|
||||
const scope_restore range_upper{data.range.second, data.event_idx + 1};
|
||||
return room_account_data_polylog_events_event(data, event);
|
||||
}
|
||||
|
||||
|
@ -173,7 +174,8 @@ ircd::m::sync::room_account_data_linear_tags(data &data,
|
|||
// past the events[] array and know to combine all of room tags into
|
||||
// the required format. The event_idx is hacked to 0 here to trick the
|
||||
// polylog apropos() into composing all tags unconditionally.
|
||||
const scope_restore range{data.range.first, 0UL};
|
||||
const scope_restore range_lower{data.range.first, 0UL};
|
||||
const scope_restore range_upper{data.range.second, data.event_idx + 1};
|
||||
const scope_restore room__{data.room, &room};
|
||||
return room_account_data_polylog_tags(data);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue