0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

modules/vm: Include empty auth_events array in create event rather than undefined.

This commit is contained in:
Jason Volk 2019-03-06 14:09:54 -08:00
parent 90752f1fb4
commit 654901d7df

View file

@ -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[]
{