0
0
Fork 0
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:
Jason Volk 2020-04-24 13:21:56 -07:00
parent 3713e45e58
commit a3e48d7757

View file

@ -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