Skip to content

Commit

Permalink
Fix i18n and add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
larkox committed Feb 4, 2025
1 parent 8ab3bb5 commit 29d4046
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/managers/session_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,11 @@ class SessionManager {

private onSessionExpired = async (serverUrl: string) => {
this.terminatingSessionUrl.add(serverUrl);

// logout is not doing anything in this scenario, but we keep it
// to keep the same flow as other logout scenarios.
await logout(serverUrl, undefined, {skipServerLogout: true, skipEvents: true});

await this.terminateSession(serverUrl, false);

const activeServerUrl = await DatabaseManager.getActiveServerUrl();
Expand Down
1 change: 1 addition & 0 deletions assets/base/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,7 @@
"logout.fail.cancel": "Cancel",
"logout.fail.confirm": "Confirm",
"logout.fail.message": "We could not log you out of the server. If you log out now, data may continue to be accessible to this device once the device goes back online. Do you still want to continue?",
"logout.fail.message.forced": "We could not log you out of the server. Data may continue to be accessible to this device once the device goes back online.",
"logout.fail.title": "Logout Failed",
"markdown.latex.error": "Latex render error",
"markdown.max_nodes.error": "This message is too long to by shown fully on a mobile device. Please view it on desktop or contact an admin to increase this limit.",
Expand Down

0 comments on commit 29d4046

Please sign in to comment.