1
0
Fork 0

remove console.log

This commit is contained in:
Cadence Ember 2023-08-21 23:34:49 +12:00
parent 6d1635539b
commit e04617eb04

View file

@ -237,8 +237,6 @@ async function _unbridgeRoom(channelID) {
* @returns {Promise<string[]>}
*/
async function _syncSpaceMember(channel, spaceID, roomID) {
console.error(channel)
console.error("syncing space for", roomID)
const spaceKState = await roomToKState(spaceID)
let spaceEventContent = {}
if (
@ -249,11 +247,9 @@ async function _syncSpaceMember(channel, spaceID, roomID) {
via: ["cadence.moe"] // TODO: use the proper server
}
}
console.error(spaceEventContent)
const spaceDiff = ks.diffKState(spaceKState, {
[`m.space.child/${roomID}`]: spaceEventContent
})
console.error(spaceDiff)
return applyKStateDiffToRoom(spaceID, spaceDiff)
}