mirror of
https://github.com/matrix-construct/construct
synced 2025-02-18 09:40:12 +01:00
modules/client/sync/rooms/state: Trim the initial crazyloaded state.
This commit is contained in:
parent
767e18791c
commit
2b7d862330
1 changed files with 0 additions and 19 deletions
|
@ -266,7 +266,6 @@ ircd::m::sync::room_state_phased_events(data &data)
|
||||||
{
|
{
|
||||||
ret = true;
|
ret = true;
|
||||||
room_state_append(data, array, event, index(event));
|
room_state_append(data, array, event, index(event));
|
||||||
|
|
||||||
data.room->get(std::nothrow, "m.room.member", at<"sender"_>(event), [&]
|
data.room->get(std::nothrow, "m.room.member", at<"sender"_>(event), [&]
|
||||||
(const m::event &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));
|
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, [&]
|
data.room->get(std::nothrow, "m.room.member", data.user.user_id, [&]
|
||||||
(const m::event &event)
|
(const m::event &event)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue