workaround synapse bug that would make broken PLs
This commit is contained in:
parent
8d536d5ef2
commit
a8fab062a4
4 changed files with 72 additions and 30 deletions
|
@ -47,10 +47,8 @@ function diffKState(actual, target) {
|
|||
|
||||
if (key === "m.room.power_levels/") {
|
||||
// Special handling for power levels, we want to deep merge the actual and target into the final state.
|
||||
console.log(actual[key])
|
||||
if (!(key in actual)) throw new Error(`want to apply a power levels diff, but original power level data is missing\nstarted with: ${JSON.stringify(actual)}\nwant to apply: ${JSON.stringify(target)}`)
|
||||
const temp = mixin({}, actual[key], target[key])
|
||||
console.log(actual[key])
|
||||
console.log(temp)
|
||||
try {
|
||||
assert.deepEqual(actual[key], temp)
|
||||
} catch (e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue