mirror of
https://github.com/matrix-construct/construct
synced 2025-02-18 09:40:12 +01:00
modules/client/rooms/messages: Omit pagination tokens at ends of iteration.
This commit is contained in:
parent
77896456c4
commit
bfc189da7e
1 changed files with 10 additions and 8 deletions
|
@ -159,15 +159,17 @@ get__messages(client &client,
|
||||||
}
|
}
|
||||||
chunk.~array();
|
chunk.~array();
|
||||||
|
|
||||||
json::stack::member
|
if(it || page.dir == 'b')
|
||||||
{
|
json::stack::member
|
||||||
top, "start", json::value{start}
|
{
|
||||||
};
|
top, "start", json::value{start}
|
||||||
|
};
|
||||||
|
|
||||||
json::stack::member
|
if(it || page.dir != 'b')
|
||||||
{
|
json::stack::member
|
||||||
top, "end", json::value{end}
|
{
|
||||||
};
|
top, "end", json::value{end}
|
||||||
|
};
|
||||||
|
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue