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