mirror of
https://github.com/matrix-construct/construct
synced 2024-06-16 08:58:20 +02:00
modules/m_room_history_visibility: Pass the testing event up the stack rather than the vis. event.
This commit is contained in:
parent
8a8dbea623
commit
48da29cf2f
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue