Skip to content

Refactor "nearby" sharing notifications #3161

@toland

Description

@toland

We've found an oddity when two users are both sharing their location when nearby. We send notifications and set the nearby flag for pushing user locations when a user uploads their location. In the case where both users are sharing nearby, we already know whether the other user is nearby or not without them uploading another location data point. We should go ahead and send notifications and update the internal state without waiting for the other user to upload a location.

There is a chance of a race condition here, and I'm not sure how to address that. Perhaps by pushing the updates through the other user's location processing handler.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions