mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-25 19:23:40 +00:00
Merge branch 'develop' into sort-imports
Signed-off-by: Aaron Raimist <aaron@raim.ist>
This commit is contained in:
@@ -183,7 +183,7 @@ Response:
|
||||
name: "dashboard",
|
||||
data: {key: "val"}
|
||||
}
|
||||
room_id: “!foo:bar”,
|
||||
room_id: "!foo:bar",
|
||||
sender: "@alice:localhost"
|
||||
}
|
||||
]
|
||||
@@ -202,7 +202,7 @@ Example:
|
||||
name: "dashboard",
|
||||
data: {key: "val"}
|
||||
}
|
||||
room_id: “!foo:bar”,
|
||||
room_id: "!foo:bar",
|
||||
sender: "@alice:localhost"
|
||||
}
|
||||
]
|
||||
@@ -473,10 +473,7 @@ async function setBotPower(
|
||||
// If the PL is equal to or greater than the requested PL, ignore.
|
||||
if (ignoreIfGreater === true) {
|
||||
// As per https://matrix.org/docs/spec/client_server/r0.6.0#m-room-power-levels
|
||||
const currentPl = (
|
||||
powerLevels.content.users && powerLevels.content.users[userId]
|
||||
) || powerLevels.content.users_default || 0;
|
||||
|
||||
const currentPl = powerLevels.users?.[userId] ?? powerLevels.users_default ?? 0;
|
||||
if (currentPl >= level) {
|
||||
return sendResponse(event, {
|
||||
success: true,
|
||||
|
||||
Reference in New Issue
Block a user