mirror of
https://github.com/matrix-construct/construct
synced 2024-11-29 18:22:50 +01:00
modules/client/rooms/messages: Fix the start pagination token in reponse.
This commit is contained in:
parent
175421f745
commit
48055345ea
1 changed files with 8 additions and 1 deletions
|
@ -121,7 +121,14 @@ get__messages(client &client,
|
||||||
else if(it)
|
else if(it)
|
||||||
++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::member member{ret, "chunk"};
|
||||||
json::stack::array chunk{member};
|
json::stack::array chunk{member};
|
||||||
|
|
Loading…
Reference in a new issue