Skip to content

Conversation

@NeilRashbrook
Copy link
Collaborator

No description provided.

@NeilRashbrook NeilRashbrook self-assigned this Dec 19, 2025
@benbucksch
Copy link
Collaborator

Shouldn't you also close the connections from our side?

@benbucksch
Copy link
Collaborator

Make a MailAccount.disconnect() function, which we can call on app shutdown.

logout() also actively forgets the login tokens, which we don't want to do on app shutdown.

@NeilRashbrook
Copy link
Collaborator Author

Shouldn't you also close the connections from our side?

I can look into doing that.

logout() also actively forgets the login tokens

It was just an example of when you might want to disconnect.

* and likely deletes all local information from this account.
* Does not delete the account on the server. */
async deleteIt(): Promise<void> {
await this.disconnect();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be logout()


/**
* Used to request that any long-lived connections be disconnected,
* either due to app shutdown or account deletion.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

* e.g. due to app shutdown.

Copy link
Collaborator

@benbucksch benbucksch Dec 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks that you added the function, and documented it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants