0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

modules/client/sync/rooms/state: Send the room creators member event on phase 0.

This commit is contained in:
Jason Volk 2019-07-04 03:19:30 -07:00
parent d1ecaf5ffb
commit 8f2495893b

View file

@ -264,8 +264,14 @@ ircd::m::sync::room_state_phased_events(data &data)
data.room->get(std::nothrow, "m.room.create", "", [&]
(const m::event &event)
{
room_state_append(data, array, event, index(event));
ret = true;
room_state_append(data, array, event, index(event));
data.room->get(std::nothrow, "m.room.member", at<"sender"_>(event), [&]
(const m::event &event)
{
room_state_append(data, array, event, index(event));
});
});
data.room->get(std::nothrow, "m.room.canonical_alias", "", [&]