0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-07-05 10:08:36 +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,11 +127,22 @@ get__context(client &client,
out 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 // Counters for debug messages
struct counts struct counts
{ {