Fix room with join rule knock looks dm
Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
parent
edcf43efba
commit
21ceb4fdc4
1 changed files with 1 additions and 0 deletions
|
@ -96,6 +96,7 @@ export function hasDMWith(userId) {
|
||||||
export function joinRuleToIconSrc(joinRule, isSpace) {
|
export function joinRuleToIconSrc(joinRule, isSpace) {
|
||||||
return ({
|
return ({
|
||||||
restricted: () => (isSpace ? SpaceIC : HashIC),
|
restricted: () => (isSpace ? SpaceIC : HashIC),
|
||||||
|
knock: () => (isSpace ? SpaceLockIC : HashLockIC),
|
||||||
invite: () => (isSpace ? SpaceLockIC : HashLockIC),
|
invite: () => (isSpace ? SpaceLockIC : HashLockIC),
|
||||||
public: () => (isSpace ? SpaceGlobeIC : HashGlobeIC),
|
public: () => (isSpace ? SpaceGlobeIC : HashGlobeIC),
|
||||||
}[joinRule]?.() || null);
|
}[joinRule]?.() || null);
|
||||||
|
|
Loading…
Reference in a new issue