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

fix to load chat for old server version #4223

Merged
merged 1 commit into from
Sep 17, 2024

Conversation

mahibi
Copy link
Collaborator

@mahibi mahibi commented Sep 16, 2024

With server version 23.0.12 (and others) it happened that the chat did not load because values were null. Now default values in json model are set.

fix #4222

🏁 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
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

With server version 23.0.12 it happened that the chat did not load because values were null. Now default values in json model are set (because that's easier than changing the entity).
Additionally a check was added in CallActivity that a callStartTime of 0 would not be used (but it should not be used anyway if it would be 0 because then capability should also not be available).

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
@mahibi mahibi self-assigned this Sep 16, 2024
@mahibi mahibi marked this pull request as ready for review September 16, 2024 15:35
@mahibi mahibi added this to the 20.1.0 milestone Sep 16, 2024
@mahibi
Copy link
Collaborator Author

mahibi commented Sep 16, 2024

/backport to stable-20.0

Copy link
Contributor

Codacy

Lint

TypemasterPR
Warnings8695
Errors131131

SpotBugs

CategoryBaseNew
Bad practice66
Correctness1111
Dodgy code7979
Internationalization33
Malicious code vulnerability33
Performance66
Security11
Total109109

Lint increased!

Copy link
Contributor

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

@mahibi mahibi merged commit 3b51fde into master Sep 17, 2024
17 of 20 checks passed
@mahibi mahibi deleted the bugfix/noid/fixNoChatForOldNcServerVersion branch September 17, 2024 09:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Android Client V 20.0.0 Chats are not shown
1 participant