mastodon / mastodon-ios

Official iOS app for Mastodon
https://app.joinmastodon.org/ios
GNU General Public License v3.0
2.06k stars 267 forks source link

Add pull to refresh to thread view #174

Open Gargron opened 3 years ago

Gargron commented 3 years ago

Suggestion from TestFlight feedback

MainasuK commented 3 years ago

Reply to a simple post. The reply could be shown if the app triggers an update after post publishing. For more complicated conversation. The refresh not works. I draw a conversation to explain that.

image

The app now only displays boxed posts.

  1. Reply-To posts in-order
  2. Root
  3. Tier 1 replies for root (T1)
  4. For each post in T1. If has replies. Show a button "Load more replies".

Tap the "Load more" button will make the app show the recent reply and clip the other replies for this node. (e.g. Tap button for Reply-1. The Reply-1-1 will display)

ideal case:

The T1 replies will always display after refresh. a.k.a reply to root.

leaf case:

The post also will display if the post reply target is a leaf node in the conversation tree.

in middle case:

The post won't display if the post reply target already has the replies. (e.g. When Reply-1-1 displaying. Make a reply to Reply-1)

reply-to case:

Make a post reply to "Reply-To-*" always not display.

The app missing a notification banner now. We can trigger UI update if could. And display a banner when it not works.

OddHouseGames commented 3 years ago

Would be super useful to be able to refresh to see the reply I posted.

Currently when I post a reply, I have to back out of the conversation and enter it again to be able to see that my response posted correctly.

Or could do what Twitter does and show banner;image