mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
allow seeing events from visibility=shared left rooms
This commit is contained in:
parent
c64a474954
commit
52af998f7b
1 changed files with 3 additions and 3 deletions
|
|
@ -222,8 +222,8 @@ impl Service {
|
||||||
return Ok(*visibility);
|
return Ok(*visibility);
|
||||||
}
|
}
|
||||||
|
|
||||||
let currently_member =
|
let once_member =
|
||||||
services().rooms.state_cache.is_joined(user_id, room_id)?;
|
services().rooms.state_cache.once_joined(user_id, room_id)?;
|
||||||
|
|
||||||
let history_visibility = self
|
let history_visibility = self
|
||||||
.state_get(
|
.state_get(
|
||||||
|
|
@ -245,7 +245,7 @@ impl Service {
|
||||||
|
|
||||||
let visibility = match history_visibility {
|
let visibility = match history_visibility {
|
||||||
HistoryVisibility::WorldReadable => true,
|
HistoryVisibility::WorldReadable => true,
|
||||||
HistoryVisibility::Shared => currently_member,
|
HistoryVisibility::Shared => once_member,
|
||||||
HistoryVisibility::Invited => {
|
HistoryVisibility::Invited => {
|
||||||
// Allow if any member on requesting server was AT LEAST
|
// Allow if any member on requesting server was AT LEAST
|
||||||
// invited, else deny
|
// invited, else deny
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue