change (media preview config) : fix JoinRule.Private case
This commit is contained in:
parent
0e738821b8
commit
4b4cfa341e
1 changed files with 1 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ fun MediaPreviewValue.isPreviewEnabled(joinRule: JoinRule?): Boolean {
|
|||
On -> true
|
||||
Off -> false
|
||||
Private -> when (joinRule) {
|
||||
is JoinRule.Private,
|
||||
is JoinRule.Knock,
|
||||
is JoinRule.Invite,
|
||||
is JoinRule.Restricted,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue