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:
parent
f86b129ea6
commit
df0fae203e
1 changed files with 6 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue