0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-01 08:18:20 +02:00

modules/client/rooms/context: Fix missing unsigned/transaction_id on returned event.

This commit is contained in:
Jason Volk 2019-04-23 13:42:50 -07:00
parent 93e3431915
commit 633802310c

View file

@ -127,10 +127,21 @@ get__context(client &client,
out
};
json::stack::member
// Output the main event first.
{
ret, "event", event
};
json::stack::object _event
{
ret, "event"
};
// We use m::append() to modify/add/remove data for this client.
m::event_append_opts opts;
opts.event_idx = &event.event_idx;
opts.user_id = &user_room.user.user_id;
opts.user_room = &user_room;
opts.room_depth = &room_depth;
m::append(_event, event, opts);
}
// Counters for debug messages
struct counts