Fix selective kstate failing on missing events
This commit is contained in:
@@ -149,8 +149,10 @@ async function roomToKState(roomID, limitToEvents) {
|
|||||||
} else {
|
} else {
|
||||||
const root = []
|
const root = []
|
||||||
await Promise.all(limitToEvents.map(async ([type, key]) => {
|
await Promise.all(limitToEvents.map(async ([type, key]) => {
|
||||||
const outer = await api.getStateEventOuter(roomID, type, key)
|
try {
|
||||||
root.push(outer)
|
const outer = await api.getStateEventOuter(roomID, type, key)
|
||||||
|
root.push(outer)
|
||||||
|
} catch (e) {}
|
||||||
}))
|
}))
|
||||||
return stateToKState(root)
|
return stateToKState(root)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user