projects
/
cinny.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4427b3b
)
Fix wrong power level in room permission
author
Ajay Bura
<ajbura@gmail.com>
Sat, 9 Jul 2022 11:02:42 +0000
(16:32 +0530)
committer
Ajay Bura
<ajbura@gmail.com>
Sat, 9 Jul 2022 11:02:42 +0000
(16:32 +0530)
src/app/molecules/room-permissions/RoomPermissions.jsx
patch
|
blob
|
history
diff --git
a/src/app/molecules/room-permissions/RoomPermissions.jsx
b/src/app/molecules/room-permissions/RoomPermissions.jsx
index 989a9396297fa56fd45db1c458b9b37cef4195cf..da8720cdd92083ff1777f7301213eda3f25aa12a 100644
(file)
--- a/
src/app/molecules/room-permissions/RoomPermissions.jsx
+++ b/
src/app/molecules/room-permissions/RoomPermissions.jsx
@@
-237,12
+237,12
@@
function RoomPermissions({ roomId }) {
? permissions[permInfo.parent]?.[permKey]
: permissions[permKey];
- if (
!permValue
) permValue = permInfo.default;
+ if (
permValue === undefined
) permValue = permInfo.default;
if (typeof permValue === 'number') {
powerLevel = permValue;
} else if (permKey === 'notifications') {
- powerLevel = permValue.room
||
50;
+ powerLevel = permValue.room
??
50;
}
return (
<SettingTile