remove console.log
This commit is contained in:
parent
6d1635539b
commit
e04617eb04
1 changed files with 0 additions and 4 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue