mirror of
https://github.com/matrix-construct/construct
synced 2024-11-19 00:10:59 +01:00
modules/client/sync/rooms/timeline: Fix user's room messages leaking into timeline result.
This commit is contained in:
parent
3713e45e58
commit
a3e48d7757
1 changed files with 4 additions and 0 deletions
|
@ -79,6 +79,10 @@ ircd::m::sync::room_timeline_linear(data &data)
|
|||
if(command)
|
||||
return _room_timeline_linear_command(data);
|
||||
|
||||
// User's room conditions must be satisfied before here.
|
||||
if(*data.room == data.user_room)
|
||||
return false;
|
||||
|
||||
const ssize_t &viewport_size
|
||||
{
|
||||
room::events::viewport_size
|
||||
|
|
Loading…
Reference in a new issue