element-web/src
David Baker 76da40c128 Fix spurious session corruption error (#12280)
* Fix spurious session corruption error

Move the server versions check to each time we reconnect to the server
rather than the first time,although, as per comment it will still only
trigger the first time, but it will avoid us awaiting and mean we know
we're connected to the server when we try, and get automatic retries.

Fixes https://github.com/element-hq/element-web/issues/26967

* Move test & add regression test

* Write some more tests

* More comments & catch exceptions in server versions check

* Note caching behaviour

* Typo

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>

* Remove the bit of the comment that might be wrong

---------

Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
(cherry picked from commit 1403cd851a)
2024-02-26 16:42:35 +00:00
..
@types Improve client metadata used for OIDC dynamic registration (#12257) 2024-02-16 14:43:58 +00:00
accessibility Switch AccessibleButton and derivatives to using `forwardRef` (#12054) 2023-12-21 08:50:42 +00:00
actions Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
async-components/views/dialogs Call the AsJson forms of import and exportRoomKeys (#12233) 2024-02-14 10:33:39 +00:00
audio Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
autocomplete Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
components Ignore activity in TAC (#12269) 2024-02-21 12:19:25 +00:00
contexts Improve AccessibleButton & related types (#12075) 2023-12-20 14:42:31 +00:00
customisations Enable redirected media by default (#12142) 2024-02-11 07:32:57 +00:00
dispatcher Use browser's font size instead of hardcoded `16px` as root font size (#12246) 2024-02-21 11:23:07 +00:00
editor Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
effects Migrate more strings to translation keys (#11579) 2023-09-08 09:58:31 +01:00
emojipicker Enable `@typescript-eslint/explicit-function-return-type` in /src (#9788) 2023-01-12 13:25:14 +00:00
events Stop displaying verification done messages in timeline (#11932) 2023-12-01 09:12:38 +00:00
hooks New Header edgecase fixes: Close lobby button not shown, disable join button in various places, more... (#12235) 2024-02-08 16:48:50 +00:00
i18n/strings Use browser's font size instead of hardcoded `16px` as root font size (#12246) 2024-02-21 11:23:07 +00:00
indexing Reduce amount of log spam (#11898) 2023-11-20 12:24:13 +00:00
integrations Remove dead & duplicated code (#11405) 2023-08-15 08:43:15 +00:00
mjolnir Migrate more strings to translation keys (#11613) 2023-09-19 17:16:38 +01:00
models Use browser's font size instead of hardcoded `16px` as root font size (#12246) 2024-02-21 11:23:07 +00:00
modules Expose apps/widgets (#12071) 2024-01-22 10:53:27 +00:00
notifications Fix: sync intentional mentions push rules with legacy rules (#11667) 2023-09-27 00:03:38 +00:00
performance Conform more of the code base to strict null checking (#10147) 2023-02-13 17:01:43 +00:00
rageshake Add A-Element-R labels to rageshakes if rust (#12251) 2024-02-15 19:45:46 +00:00
resizer Enable strictFunctionTypes (#11201) 2023-07-07 13:37:26 +01:00
settings Use browser's font size instead of hardcoded `16px` as root font size (#12246) 2024-02-21 11:23:07 +00:00
slash-commands Migrate more strings to translation keys (#11665) 2023-09-25 18:12:41 +01:00
stores Fix spurious session corruption error (#12280) 2024-02-26 16:42:35 +00:00
toasts New Header edgecase fixes: Close lobby button not shown, disable join button in various places, more... (#12235) 2024-02-08 16:48:50 +00:00
usercontent
utils Fix Native OIDC for Element Desktop (#12253) 2024-02-19 15:10:11 +00:00
voice-broadcast Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
widgets Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
workers Appease the linter 2023-11-18 21:37:49 +01:00
AddThreepid.ts Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
AsyncWrapper.tsx Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
Avatar.ts Fixes read receipt avatar offset (#11483) 2023-08-30 11:47:35 +00:00
BasePlatform.ts Fix Native OIDC for Element Desktop (#12253) 2024-02-19 15:10:11 +00:00
BlurhashEncoder.ts Fix paths and extensions 2023-11-13 20:10:55 +01:00
ContentMessages.ts Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
DateUtils.ts Port more strings to translation keys (#11474) 2023-08-31 07:35:34 +00:00
DecryptionFailureTracker.ts Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
DeviceListener.ts DeviceListener: Remove usage of deprecated keybackup API (#11614) 2023-09-20 11:34:18 +00:00
Editing.ts Enable `@typescript-eslint/explicit-function-return-type` in /src (#9788) 2023-01-12 13:25:14 +00:00
HtmlUtils.tsx Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
IConfigOptions.ts Remove welcome bot `welcome_user_id` support (#12153) 2024-02-12 15:04:13 +00:00
IdentityAuthClient.tsx Fix Identity Server terms accepting not working as expected (#12109) 2024-01-08 10:27:03 +00:00
ImageUtils.ts Conform more of the codebase to `strictNullChecks` (#10573) 2023-04-13 08:52:57 +01:00
KeyBindingsDefaults.ts Apply `strictNullChecks` around the codebase (#10302 2023-03-07 13:19:18 +00:00
KeyBindingsManager.ts Conform more code to `strictNullChecks` (#10374) 2023-03-16 11:07:29 +00:00
Keyboard.ts Comply with noImplicitAny (#9940) 2023-02-13 11:39:16 +00:00
LegacyCallHandler.tsx Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
Lifecycle.ts Fix spurious session corruption error (#12280) 2024-02-26 16:42:35 +00:00
Livestream.ts Pass around MatrixClients instead of using MatrixClientPeg (#10984) 2023-06-01 14:43:24 +01:00
Login.ts Improve client metadata used for OIDC dynamic registration (#12257) 2024-02-16 14:43:58 +00:00
Markdown.ts Treat lists with a single empty item as plain text, not Markdown. (#6833) 2023-08-17 16:37:19 +00:00
MatrixClientPeg.ts Support rust in StorageManager (#12206) 2024-02-01 15:42:14 +00:00
MediaDeviceHandler.ts Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
Modal.tsx Update dependency @vector-im/compound-web to v2 (#12133) 2024-01-11 19:56:36 +00:00
NodeAnimator.tsx Fix regression around read receipt animation from refs changes (#12100) 2024-01-03 11:36:11 +00:00
Notifier.ts Remove Cypress & Playwright in their entirety (#12145) 2024-01-16 09:48:49 +00:00
PageTypes.ts
PasswordReset.ts Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
PlatformPeg.ts Enable `@typescript-eslint/explicit-function-return-type` in /src (#9788) 2023-01-12 13:25:14 +00:00
PosthogAnalytics.ts Report crypto sdk in posthog (#11834) 2023-11-13 14:16:12 +00:00
PosthogTrackers.ts Update dependency @vector-im/compound-web to v0.9.4 (#11891) 2023-12-14 11:10:01 +00:00
Presence.ts Switch to updating presence via /sync calls instead of PUT /presence (#11824) 2023-11-01 10:49:47 +00:00
Registration.tsx Migrate more strings to translation keys (#11608) 2023-09-19 07:17:31 +01:00
Resend.ts Switch to importing models/Room from main js-sdk export (#11361) 2023-08-04 07:36:16 +00:00
Roles.ts Migrate more strings to translation keys (#11498) 2023-08-31 11:22:10 +01:00
RoomAliasCache.ts Conform more of the code base to strict null checking (#10147) 2023-02-13 17:01:43 +00:00
RoomInvite.tsx Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
RoomNotifs.ts Add labs flag for Threads Activity Centre (#12137) 2024-01-29 17:52:48 +00:00
Rooms.ts Switch to importing models/Room from main js-sdk export (#11361) 2023-08-04 07:36:16 +00:00
ScalarAuthClient.ts Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
ScalarMessaging.ts Migrate more strings to translation keys (#11651) 2023-09-22 16:39:40 +01:00
SdkConfig.ts Show all labs flags if developerMode enabled (#11746) 2023-10-13 13:24:00 +00:00
Searching.ts Switch to importing more things from the main js-sdk export (#11377) 2023-08-10 08:01:14 +00:00
SecurityManager.ts Set up key backup using non-deprecated APIs (2nd take) (#12098) 2024-01-10 10:34:03 +00:00
SendHistoryManager.ts Switch to importing models/event from main js-sdk export (#11363) 2023-08-07 08:24:58 +00:00
SlashCommands.tsx Disable upgraderoom command without developer mode enabled (#11744) 2023-10-13 09:48:32 +00:00
SlidingSyncManager.ts Switch to importing @types/{event,partials} from main js-sdk export (#11369) 2023-08-08 10:12:12 +00:00
Terms.ts Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
TextForEvent.tsx Migrate more strings to translation keys (#11683) 2023-10-02 13:52:27 +01:00
Typeguards.ts RTE plain text mentions as pills (#10852) 2023-05-16 11:54:16 +00:00
Unread.ts Pop out of Threads Activity Centre (#12136) 2024-02-07 13:49:40 +00:00
UserActivity.ts Update dependency prettier to v3 (#12095) 2024-01-02 18:56:39 +00:00
UserAddress.ts
Views.ts Lock out the first tab if Element is opened in a second tab. (#11425) 2023-08-24 08:28:43 +00:00
VoipUserMapper.ts Switch to importing models/Room from main js-sdk export (#11361) 2023-08-04 07:36:16 +00:00
WhoIsTyping.ts Migrate more strings to translation keys (#11530) 2023-09-05 10:44:41 +01:00
WorkerManager.ts Load web workers in a way that Webpack 5 can bundle them 2023-11-11 16:03:08 +01:00
boundThreepids.ts Consume more imports from matrix-js-sdk/src/matrix (#11449) 2023-08-23 09:04:25 +00:00
call-types.ts
createRoom.ts Always allow call.member events on new rooms (#11948) 2023-11-28 12:13:31 +00:00
email.ts Factor out basic email check (#10244) 2023-02-28 10:39:35 +01:00
identifiers.ts
index.ts
languageHandler.tsx Update custom translations to support nested fields in structured JSON (#11685) 2023-10-02 10:44:25 +00:00
linkify-matrix.ts Enable redirected media by default (#12142) 2024-02-11 07:32:57 +00:00
phonenumber.ts Get country names from the browser instead of manual i18n (#11428) 2023-08-22 16:15:16 +00:00
sendTimePerformanceMetrics.ts Enable `@typescript-eslint/explicit-function-return-type` in /src (#9788) 2023-01-12 13:25:14 +00:00
sentry.ts Update dependency @sentry/browser to v7.94.1 (#12171) 2024-01-24 09:23:54 +00:00
shouldHideEvent.ts Switch to importing @types/{event,partials} from main js-sdk export (#11369) 2023-08-08 10:12:12 +00:00
theme.ts Enable custom themes to theme Compound (#12240) 2024-02-13 14:07:58 +00:00
verification.ts Switch to importing models/{event-timeline{,set},user,device,event-status} from main js-sdk export (#11368) 2023-08-08 07:16:04 +00:00