From 8f2495893bdb52eb7e9906a8ab8b24eccd0c0c5a Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 4 Jul 2019 03:19:30 -0700 Subject: [PATCH] modules/client/sync/rooms/state: Send the room creators member event on phase 0. --- modules/client/sync/rooms/state.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/client/sync/rooms/state.cc b/modules/client/sync/rooms/state.cc index 76202587d..d6a8ecfec 100644 --- a/modules/client/sync/rooms/state.cc +++ b/modules/client/sync/rooms/state.cc @@ -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", "", [&]