0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 23:44:01 +01:00

modules/m_room_history_visibility: Pass the testing event up the stack rather than the vis. event.

This commit is contained in:
Jason Volk 2019-04-06 18:40:24 -07:00
parent 8a8dbea623
commit 48da29cf2f

View file

@ -116,11 +116,11 @@ ircd::m::visible(const m::event &event,
const bool has_state_event
{
state.get(std::nothrow, "m.room.history_visibility", "", [&]
(const m::event &event)
(const m::event &visibility_event)
{
const json::object &content
{
json::get<"content"_>(event)
json::get<"content"_>(visibility_event)
};
const string_view &history_visibility