0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 08:42:34 +01:00

modules/client/sync/rooms/state: Trim the initial crazyloaded state.

This commit is contained in:
Jason Volk 2019-07-06 05:55:11 -07:00
parent 767e18791c
commit 2b7d862330

View file

@ -266,7 +266,6 @@ ircd::m::sync::room_state_phased_events(data &data)
{
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)
{
@ -298,24 +297,6 @@ ircd::m::sync::room_state_phased_events(data &data)
room_state_append(data, array, event, index(event));
});
data.room->get(std::nothrow, "m.room.join_rules", "", [&]
(const m::event &event)
{
room_state_append(data, array, event, index(event));
});
data.room->get(std::nothrow, "m.room.history_visibility", "", [&]
(const m::event &event)
{
room_state_append(data, array, event, index(event));
});
data.room->get(std::nothrow, "m.room.power_levels", "", [&]
(const m::event &event)
{
room_state_append(data, array, event, index(event));
});
data.room->get(std::nothrow, "m.room.member", data.user.user_id, [&]
(const m::event &event)
{