Skip to content
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

[stable-20.0] do not try to pull chat messages when offline or paused #4200

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Sep 12, 2024

Backport of PR #4193

Otherwise, it resulted in a lot of flickering because _lastCommonReadFlow was emitted every 500ms. And anyway if we know we are offline or paused then it doesn't make sense to execute the sync method.

chain which caused the flickering was:
updateUiForLastCommonRead (_lastCommonReadFlow) -> updateReadStatusOfAllMessages - notifyDataSetChanged -> onBindViewHolder -> IncomingLinkPreviewMessageViewHolder

Signed-off-by: Marcel Hibbe <[email protected]>
@backportbot backportbot bot added the 3. to review Waiting for reviews label Sep 12, 2024
@backportbot backportbot bot added this to the 20.0.0 milestone Sep 12, 2024
@mahibi mahibi merged commit 02520ef into stable-20.0 Sep 12, 2024
11 of 15 checks passed
@mahibi mahibi deleted the backport/4193/stable-20.0 branch September 12, 2024 15:24
Copy link
Contributor

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/4200-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.

Copy link
Contributor

Codacy

Lint

TypemasterPR
Warnings8692
Errors131131

SpotBugs

CategoryBaseNew
Bad practice66
Correctness1111
Dodgy code7878
Internationalization33
Malicious code vulnerability33
Performance66
Security11
Total108108

Lint increased!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant