0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2025-01-17 18:11:52 +01:00

modules/client/initialSync: Simplify json::stack usage.

This commit is contained in:
Jason Volk 2019-09-23 19:56:16 -07:00
parent f86b129ea6
commit df0fae203e

View file

@ -479,14 +479,9 @@ initialsync_room_state(client &client,
const m::user::room &user_room,
const m::room &room)
{
json::stack::member member
{
out, "events"
};
json::stack::array array
{
member
out, "events"
};
const m::room::state state
@ -517,8 +512,11 @@ initialsync_room_timeline(client &client,
// events
m::event::id::buf prev;
{
json::stack::member member{out, "events"};
json::stack::array array{member};
json::stack::array array
{
out, "events"
};
prev = initialsync_room_timeline_events(client, request, array, user_room, room);
}