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:
parent
8a8dbea623
commit
48da29cf2f
1 changed files with 2 additions and 2 deletions
|
@ -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