bug fix :(

This commit is contained in:
Cadence Ember 2023-08-25 17:35:34 +12:00
parent 20cd7ab38e
commit c4bc079865
1 changed files with 1 additions and 2 deletions

View File

@ -97,7 +97,7 @@ async function syncSpace(guildID) {
const roomsWithCustomAvatars = db.prepare("SELECT room_id FROM channel_room WHERE custom_avatar IS NOT NULL").pluck().all()
const childRooms = ks.kstateToState(spaceKState).filter(({type, state_key, content}) => {
return type === "m.space.child" && "via" in content && roomsWithCustomAvatars.includes(state_key)
return type === "m.space.child" && "via" in content && !roomsWithCustomAvatars.includes(state_key)
}).map(({state_key}) => state_key)
for (const roomID of childRooms) {
@ -108,7 +108,6 @@ async function syncSpace(guildID) {
}
}
return spaceID
}