Fix selective kstate failing on missing events

This commit is contained in:
Cadence Ember
2026-01-30 13:44:13 +13:00
parent d7f5f8bac4
commit 6200d0b986

View File

@@ -149,8 +149,10 @@ async function roomToKState(roomID, limitToEvents) {
} else {
const root = []
await Promise.all(limitToEvents.map(async ([type, key]) => {
const outer = await api.getStateEventOuter(roomID, type, key)
root.push(outer)
try {
const outer = await api.getStateEventOuter(roomID, type, key)
root.push(outer)
} catch (e) {}
}))
return stateToKState(root)
}