-
Notifications
You must be signed in to change notification settings - Fork 1
Handle links in app #239
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
Handle links in app #239
Conversation
…ented - doing that allowed us to push/pop anything we want to the navigation stack - added new link handling, now if a link looks even remotely "sus" I will ask Lemmy's servers if they know it, if they do know it: We push the appropriate object to the navigation stack if they don't know about it and it's an HTTP link, kept the old behavior otherwise I let the system try to open it (which is way nicer than telling the user "it's not supported" especially for mailto: links XD
…in there SwiftUI should pick up on it better (that solved a bug where the upvote/downvotes weren't updating correctly sometimes - updated every place that expects APIPostView.id == APIPostView.post.id to reference the correct id (usually .post.id) - Since ExpandedPost is not more independent made the postView within it it's state
…n-app # Conflicts: # Mlem.xcodeproj/project.pbxproj
…n-app # Conflicts: # Mlem/Views/Tabs/Posts/Components/Post/Components/Community View/Community Search/Community Search View.swift
|
Nice! I'll get a look at this but likely tomorrow at the earliest, if you're looking for the matrix chat here's a link which I think should work; https://matrix.to/#/%23MlemApp%3Amatrix.org Once there we should be to get you into the dev chat if you like 👍 |
|
Ahaha I’m already there (General and recruitment) and just saw the invite to dev,, I’ll try to be just as active there as I am here |
|
I RPReplay_Final1687607587.mov'd say it's looking pretty good |
Had to commit some more crims to keep the SwiftUI state all synced up nicely Made sure to noty double up on the NavigationStack in the user page since it really crashs everything for some reason
|
I'd say I have to agree with your statement |
Checklist
Choose one of the following two options:
Choose one of the following two options:
Pull Request Information
About this Pull Request
The gist is that if you click a link in a post that looks like it's another Lemmy post/community/user we'll open that in app and not in Safari! but here're the more detailed change log since it was no easy task:
if they don't know about it and it's an HTTP link, kept the old behavior
otherwise I let the system try to open it (which is way nicer than telling the user "it's not supported" especially for mailto: links XD
Screenshots and Videos
IMG_7203.mov
(It's less helpful since you don't see where I'm tapping 😅 but I hope you understood from context that Im pressing on each individual representation of these links)
Additional Context