Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fully reset configuration when changing mode and/or host/port #1598

Closed
jpmens opened this issue Feb 2, 2024 · 2 comments
Closed

Fully reset configuration when changing mode and/or host/port #1598

jpmens opened this issue Feb 2, 2024 · 2 comments
Assignees
Milestone

Comments

@jpmens
Copy link
Member

jpmens commented Feb 2, 2024

As briefly discussed internally, I suggest an enhancement which will reset our apps' configuration and internal database on change of host/port for a particular mode or on change of mode (iOS does the latter already).

The reasoning is that if I'm hosted on a particular broker but change to a different friend's broker, say, there's no reason to keep a list of locations I've received in the past, nor is there a reason to see prior friends, as they'll likely not be on the new broker / server.

In particular we should wipe:

  • current list of friends (contacts received)
  • accumulated and not yet transmitted locations (which might even be destined for an incorrect topic)

Tracked on iOS at owntracks/ios#771

@jpmens
Copy link
Member Author

jpmens commented Feb 4, 2024

Additional ground for a wipe

@growse growse added this to the v2.5 milestone Feb 4, 2024
@growse
Copy link
Collaborator

growse commented Feb 4, 2024

There's currently no code that wipes the outstanding queue, so that'll take some thought. Clearing the contacts should be straightforward.

@growse growse closed this as completed in 62539ba Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants