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