Correctly handle account with invalid access token
Show a popup saying the session was signed out and cleanup the models data, instead of spamming the users with never-ending errors.
This commit is contained in:
@@ -94,4 +94,8 @@ QtObject {
|
||||
function onDevicesUpdated(forAccount) {
|
||||
deviceUpdateSignal(forAccount)
|
||||
}
|
||||
|
||||
function onInvalidAccessToken(userId) {
|
||||
window.makePopup("Popups/InvalidAccessTokenPopup.qml", {userId})
|
||||
}
|
||||
}
|
||||
|
@@ -5,5 +5,7 @@ import QtQuick 2.12
|
||||
|
||||
QtObject {
|
||||
readonly property var pendingCoroutines: ({})
|
||||
readonly property var hideErrorTypes: new Set(["gaierror", "SSLError"])
|
||||
readonly property var hideErrorTypes: new Set([
|
||||
"gaierror", "SSLError", "MatrixInvalidAccessToken",
|
||||
])
|
||||
}
|
||||
|
Reference in New Issue
Block a user