Follow-up fixes to bridging admin power levels MR !2343
commitc8856f224e1ddf71be617b23ad7fa8567353c2f2
authorEric Eastwood <contact@ericeastwood.com>
Tue, 31 Jan 2023 10:23:29 +0000 (31 10:23 +0000)
committerEric Eastwood <contact@ericeastwood.com>
Tue, 31 Jan 2023 10:24:22 +0000 (31 04:24 -0600)
tree6357071b32554e3ae54c7064961edac807015132
parent7d98ca20d3a343a5d808039fd5baf7a1a0256522
Follow-up fixes to bridging admin power levels MR !2343

(https://gitlab.com/gitterHQ/webapp/-/merge_requests/2343)

 1. When someone joins the room, if we add them as an admin of the Matrix room, also add them as an admin of the historical Matrix room
 1. Make sure to call `cleanupAdminsInMatrixRoomIdAccordingToGitterRoomId(...)` alongside `addAdminsInMatrixRoomIdAccordingToGitterRoomId(...)` when we `ensureCorrectRoomState(...)`
 1. Refactor to use `ensureStateEvent(...)` instead of `ensureStateEventAsMxid(...)` as the bridge user
modules/matrix-bridge/lib/gitter-bridge.js
modules/matrix-bridge/lib/matrix-utils.js