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

Show special unfurl when location share ends #20798

Merged
merged 12 commits into from Nov 8, 2019

Conversation

cori-hudson
Copy link
Contributor

This PR adds a new unfurl type for when a location share has ended. This is different from the standard map unfurl so clients can remove all location data after the time has ended.

Copy link
Contributor

@mmaxim mmaxim left a comment

Choose a reason for hiding this comment

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

Why do you need a new type? Can't we just stick some more info on UnfurlGenericMapInfo?

@cori-hudson
Copy link
Contributor Author

Why do you need a new type? Can't we just stick some more info on UnfurlGenericMapInfo?

that might work? i had seen some wonkiness when sending a bunch of nil fields with mapinfo, but I think I know where those errors were coming from

@cori-hudson cori-hudson changed the title Add "location sharing ended" unfurl type Show special unfurl when location share ends Nov 7, 2019
@cori-hudson
Copy link
Contributor Author

Changed how this code works - the Coord field on UnfurlGenericMapInfo is now nullable, and when there is no coordinate to show, the frontend will show a "location share ended" unfurl. This also has a nice side effect of explicitly clearing location after a share ends so there's less chance of leaking previous locations unintentionally.

Copy link
Contributor

@mmaxim mmaxim left a comment

Choose a reason for hiding this comment

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

As discussed in person, try to do without changing an existing field.

@cori-hudson cori-hudson merged commit 99fccbe into master Nov 8, 2019
@cori-hudson cori-hudson deleted the cori/HOTPOT-1206/end-sharing-unfurl branch November 8, 2019 16:00
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.

None yet

2 participants