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-21.0] avoid duplicated messages after sending #4696

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

backportbot[bot]
Copy link

@backportbot backportbot bot commented Feb 6, 2025

Backport of PR #4688

It could happen that when sending a message it was received on server but if the servers response is not received, the retry was triggered in the talk app.
This sometimes happened when internet connection was not the best.

Best would be that messages with the same referenceId would be refused on server side, but this won't be the case for now. So messages with the same referenceId are NOT refused as this would be too much overhead as there would be additional queries on server for every received message)

For now, the automatic retry logic is just removed so duplicated messages won't be created automatically.
However it's still possible to manually trigger the retry via button. In this case it is not guaranteed that there won't be duplicates.

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
@backportbot backportbot bot requested review from sowjanyakch and mahibi February 6, 2025 14:58
@backportbot backportbot bot added the 3. to review Waiting for reviews label Feb 6, 2025
@backportbot backportbot bot added this to the 21.0.0 milestone Feb 6, 2025
@sowjanyakch sowjanyakch enabled auto-merge February 6, 2025 14:59
Copy link
Contributor

github-actions bot commented Feb 6, 2025

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

github-actions bot commented Feb 6, 2025

Codacy

Lint

TypemasterPR
Warnings104104
Errors3636

SpotBugs

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

@sowjanyakch sowjanyakch merged commit 7964c96 into stable-21.0 Feb 6, 2025
14 of 15 checks passed
@sowjanyakch sowjanyakch deleted the backport/4688/stable-21.0 branch February 6, 2025 15:17
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.

2 participants