mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 08:44:18 +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
|
const bool has_state_event
|
||||||
{
|
{
|
||||||
state.get(std::nothrow, "m.room.history_visibility", "", [&]
|
state.get(std::nothrow, "m.room.history_visibility", "", [&]
|
||||||
(const m::event &event)
|
(const m::event &visibility_event)
|
||||||
{
|
{
|
||||||
const json::object &content
|
const json::object &content
|
||||||
{
|
{
|
||||||
json::get<"content"_>(event)
|
json::get<"content"_>(visibility_event)
|
||||||
};
|
};
|
||||||
|
|
||||||
const string_view &history_visibility
|
const string_view &history_visibility
|
||||||
|
|
Loading…
Reference in a new issue