0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-15 14:31:11 +01:00

ircd:Ⓜ️:createroom: Add empty arrays on create event for spinapps.

This commit is contained in:
Jason Volk 2019-12-22 02:24:40 -08:00
parent 74b07825aa
commit 1adccbecac

View file

@ -427,8 +427,10 @@ ircd::m::_create_event(const createroom &c)
make_iov(content, _user_content, user_content_count, user_content);
const json::iov::push push[]
{
{ event, { "room_id", room.room_id }},
{ event, { "auth_events", "[]" }},
{ event, { "depth", 0L }},
{ event, { "prev_events", "[]" }},
{ event, { "room_id", room.room_id }},
{ event, { "sender", creator }},
{ event, { "state_key", "" }},
{ event, { "type", "m.room.create" }},