You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mildly terrified that matrix-js-sdk calls this.baseApis.sendToDevice("m.room.encrypted") 7 times
but sendToDevice has no retry mechanism
but almost none of those calls to sendToDevice appear to do retries
so if the PUT fails... the whole thing fails, whether that's keysharing or re-sharing or requesting or... anything.
That said, encryptAndSendKeysToDevices() has uses Promise.all().then() to send its messages... so if any of the sends fail, the whole attempt to encrypt will fail, so we will re-send those messages if it ever retries.
The text was updated successfully, but these errors were encountered:
const promises = [];
for (const userId of userIds) {
// do not await - we want these to run concurrently
promises.push(this.encryptAndSend(userId, props...).then(() => markSent()).catch(e => retry())); // don't let `retry()` throw
}
await Promise.all(promises);
// continue event sending
mildly terrified that matrix-js-sdk calls
this.baseApis.sendToDevice("m.room.encrypted")
7 timesbut sendToDevice has no retry mechanism
but almost none of those calls to sendToDevice appear to do retries
so if the PUT fails... the whole thing fails, whether that's keysharing or re-sharing or requesting or... anything.
That said,
encryptAndSendKeysToDevices()
has uses Promise.all().then() to send its messages... so if any of the sends fail, the whole attempt to encrypt will fail, so we will re-send those messages if it ever retries.The text was updated successfully, but these errors were encountered: