Unhandled indexeddb exception prevents login
Trixnity Messenger as a web client
During the login, when a higher version of an indexdDB is found this exception is thrown:
DOMException: The requested version (1) is less than the existing version (3).
This should not be the case, since the old version is cleared during logout, but it can happen (browser is closed unexpectedly).
Since this exception is not handled correctly, this is then promoted:
"EventHandlerException: An inner exception was thrown: ErrorEventException: An error event was received.\n at IDBOpenDBRequest.eval (webpack-internal:///./kotlin/indexeddb-core.js:1176:27)"
Which is finaly handled in de.connect2x.trixnity.messenger.viewmodel.connecting.LoginKt#handleCause
- and gets passed on into the else block, where a generic error message is produced.