fix(client): bound matrix requests so stalled sends can be retried

This commit is contained in:
Erwan Leboucher committed 2026-08-08 12:37:15 +02:00
1 parent 3af64a4080
commit 5e8401cc76
1 file changed
+3
+3
View File
@@ -226,6 +226,8 @@ const isMismatch = (err: unknown): boolean => {
);
};
const REQUEST_TIMEOUT_MS = 30_000;
type BuiltClient = {
mx: MatrixClient;
indexedDBStore: IndexedDBStore;
@@ -261,6 +263,7 @@ const buildClient = async (session: Session): Promise<BuiltClient> => {
cryptoCallbacks: cryptoCallbacks as unknown as CryptoCallbacks,
verificationMethods: ['m.sas.v1'],
tokenRefreshFunction: tokenRefresher?.tokenRefreshFunction,
localTimeoutMs: REQUEST_TIMEOUT_MS,
});
return { mx, indexedDBStore };