0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 00:14:07 +01:00

modules/client/rooms/messages: Fix the start pagination token in reponse.

This commit is contained in:
Jason Volk 2019-03-04 12:21:11 -08:00
parent 175421f745
commit 48055345ea

View file

@ -121,7 +121,14 @@ get__messages(client &client,
else if(it)
++it;
m::event::id::buf start, end;
m::event::id::buf start
{
page.dir == 'b'?
page.from:
m::event::id::buf{}
};
m::event::id::buf end;
{
json::stack::member member{ret, "chunk"};
json::stack::array chunk{member};