talk-android icon indicating copy to clipboard operation
talk-android copied to clipboard

Fetch messages in background

Open rapterjet2004 opened this issue 1 year ago • 8 comments

  • fixes #4381

Fetches messages and saves them when refreshing the conversation list. Only refreshes what is needed, to save battery.

🏁 Checklist

  • [ ] ⛑️ Tests (unit and/or integration) are included or not needed
  • [ ] 🔖 Capability is checked or not needed
  • [ ] 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • [ ] 📅 Milestone is set
  • [x] 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

rapterjet2004 avatar Nov 22 '24 16:11 rapterjet2004

not to be merged for 20.1.0, might review only afterwards

mahibi avatar Nov 26 '24 21:11 mahibi

fyi @rapterjet2004 i rebased on master...

mahibi avatar Dec 03 '24 11:12 mahibi

will do some testing tomorrow, then it should be fine to merge

mahibi avatar Jan 22 '25 13:01 mahibi

sorry Julius i won't merge this PR.

There were just too many things wrong when i tested (messages that i expected to be there were missing / Messages were loaded from when conversation was created / ...)

Also the calculation with the previous/current/result lists doesn't make sense to me. Why is only the difference to the last state counted? If the unread messages are missing, we want to have them all.

Tbh i would like to close the PR for now and we should have a fresh look at it later.

mahibi avatar Jan 23 '25 13:01 mahibi

Rewrote and simplified the updateRoomMessages, couldn't replicate the other errors. Can you point me in the right direction?

rapterjet2004 avatar Feb 14 '25 19:02 rapterjet2004

Rewrote and simplified the updateRoomMessages, couldn't replicate the other errors. Can you point me in the right direction?

hope to find time for this one soon! can you rebase and solve the merge conflicts?

mahibi avatar Mar 06 '25 13:03 mahibi

Codacy

Lint

TypemasterPR
Warnings100100
Errors99

SpotBugs

CategoryBaseNew
Bad practice66
Correctness222222
Dodgy code7171
Internationalization33
Malicious code vulnerability33
Performance44
Security11
Total310310

github-actions[bot] avatar Mar 06 '25 21:03 github-actions[bot]

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/4475-talk.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud Talk app.

github-actions[bot] avatar Mar 06 '25 21:03 github-actions[bot]