mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 00:34:18 +01:00
modules/client/rooms/context: Fix missing unsigned/transaction_id on returned event.
This commit is contained in:
parent
93e3431915
commit
633802310c
1 changed files with 14 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue