thunder-app / thunder

Thunder - An open-source cross-platform Lemmy client for iOS and Android built with Flutter
https://thunderapp.dev
GNU Affero General Public License v3.0
712 stars 62 forks source link

Allow commenting as other user #1352

Closed micahmo closed 5 days ago

micahmo commented 2 weeks ago

Pull Request Description

The PR adds the ability to create comments as a different user than the currently selected one. It should work whether responding directly to a post or to a comment. As with #1159, there is object resolution in place to look up the corresponding post and (if necessary) comment on the new instance, and there is error handling if those objects are not found. The original user is restored upon navigating back while the rest of the app is left untouched. Since we can't know if the new comment has federated yet, we can't do the nifty thing where the new comment is immediately shown in the thread, but by refreshing it can be seen once it federates.

Hide whitespace.

Screenshots / Recordings

Apologies in the demo that the comments take a little while to federate.

https://github.com/thunder-app/thunder/assets/7417301/d82db6dc-a9ee-4305-935a-241712b7c102