mirror of
https://github.com/matrix-construct/construct
synced 2024-11-30 02:32:43 +01:00
modules/vm: Include empty auth_events array in create event rather than undefined.
This commit is contained in:
parent
90752f1fb4
commit
654901d7df
1 changed files with 2 additions and 2 deletions
|
@ -215,8 +215,8 @@ ircd::m::vm::eval__commit_room(eval &eval,
|
|||
};
|
||||
|
||||
char ae_buf[1024];
|
||||
json::array auth_events;
|
||||
if(depth != -1 && opts.add_auth_events)
|
||||
json::array auth_events{json::empty_array};
|
||||
if(depth != -1 && event.at("type") != "m.room.create" && opts.add_auth_events)
|
||||
{
|
||||
static const string_view types[]
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue