forked from mirror/grapevine
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);
|
||||
}
|
||||
|
||||
let currently_member =
|
||||
services().rooms.state_cache.is_joined(user_id, room_id)?;
|
||||
let once_member =
|
||||
services().rooms.state_cache.once_joined(user_id, room_id)?;
|
||||
|
||||
let history_visibility = self
|
||||
.state_get(
|
||||
|
@ -245,7 +245,7 @@ impl Service {
|
|||
|
||||
let visibility = match history_visibility {
|
||||
HistoryVisibility::WorldReadable => true,
|
||||
HistoryVisibility::Shared => currently_member,
|
||||
HistoryVisibility::Shared => once_member,
|
||||
HistoryVisibility::Invited => {
|
||||
// Allow if any member on requesting server was AT LEAST
|
||||
// invited, else deny
|
||||
|
|
Loading…
Reference in a new issue