proxer / ProxerAndroid

The official Android App of Proxer.Me
https://proxer.me
GNU General Public License v3.0
122 stars 20 forks source link

swipe down in a conversation reloads the conversation #7

Closed cuechan closed 8 years ago

cuechan commented 8 years ago

Not sure if this is a bug or a feature :grimacing: Swiping down when i am at oldest message in a conversation reloads the messages instead of loading older ones from proxer.me. IIRC in the older versions swiping down loads older messages.

rubengees commented 8 years ago

Haha :D Are the already loaded messages lost? I am not so sure if this is a bug or not, as it is hard to reproduce.

rubengees commented 8 years ago

Does the infinite scrolling work for you?

cuechan commented 8 years ago

It looks like nothing happens. The red wheel appears for half a second and thats all. After doing this a few times in a row an error show up saying the server does not answered in time (i think thats just my shitty internet connection)

cuechan commented 8 years ago

Found out that the main problem is having a slow internet connection. So when some new messages are already loaded but fetching older failed all messages are going to be discarded. Even the successfully loaded ones. I think this is related to #3

rubengees commented 8 years ago

Ah I think I know what it is. There are cases in which no progress animation is shown (Polling every 3 seconds, loading new messages at the end of the list). If you then pull to refresh it looks like nothing happens, as the App is still trying to do what it was doing before (Polling most likely) and with a bad internet connection this becomes noticeable. I am not quite sure what to do about this. Regarding error handling: Yes it is not optimal yet. I will try to find a solution which does not loses all loaded data.