Don't add unwanted key to initial room creation

This commit is contained in:
Cadence Ember
2025-02-16 17:32:51 +13:00
parent a05868f418
commit 0d0ca98e13

View File

@@ -238,6 +238,7 @@ async function postApplyPowerLevels(kstate, callback) {
const powerLevelContent = kstate["m.room.power_levels/"]
const kstateWithoutPowerLevels = {...kstate}
delete kstateWithoutPowerLevels["m.room.power_levels/"]
delete kstateWithoutPowerLevels["chat.schildi.hide_ui/read_receipts"]
/** @type {string} */
const roomID = await callback(kstateWithoutPowerLevels)