mirror of
https://github.com/matrix-construct/construct
synced 2025-01-13 08:23:56 +01:00
modules/m_room_history_visibility: Add node visibility test.
This commit is contained in:
parent
e798d81306
commit
7b9e5f944d
1 changed files with 6 additions and 1 deletions
|
@ -56,7 +56,12 @@ _visible_(const m::event &event,
|
|||
const m::room &room,
|
||||
const string_view &history_visibility)
|
||||
{
|
||||
return true;
|
||||
const m::room::origins origins
|
||||
{
|
||||
room
|
||||
};
|
||||
|
||||
return origins.has(node_id.host());
|
||||
}
|
||||
|
||||
static bool
|
||||
|
|
Loading…
Reference in a new issue