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 scroll to last read message #4136

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

mahibi
Copy link
Collaborator

@mahibi mahibi commented Sep 3, 2024

This will fix to scroll to the last read message when a chat is opened.

See comment #4069 (review)

Some refactorings were made that are not necessary for the fix (I tried to also show the "Unread messages" hint in the adapter but came to the conclusion this is not a good idea until chatkit is removed. Chatkit doesn't support to add some item in between but only at the end or start which will make it too complicated..)

🏁 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?)

@mahibi mahibi added the 3. to review Waiting for reviews label Sep 3, 2024
@mahibi mahibi added this to the 20.0.0 milestone Sep 3, 2024
@mahibi mahibi self-assigned this Sep 3, 2024
@mahibi
Copy link
Collaborator Author

mahibi commented Sep 3, 2024

/backport to stable-20.0

@mahibi mahibi modified the milestones: 20.0.0, 20.1.0 Sep 3, 2024
Copy link
Contributor

github-actions bot commented Sep 3, 2024

Codacy

Lint

TypemasterPR
Warnings8691
Errors131131

SpotBugs

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

Lint increased!

@mahibi
Copy link
Collaborator Author

mahibi commented Sep 3, 2024

This will fix to scroll to the last read message when a chat is opened.

Some refactorings were made that are not necessary for the fix (I tried to also show the "Unread messages" hint in the adapter but came to the conclusion this is not a good idea until chatkit is removed. Chatkit doesn't support to add some item in between but only at the end or start which will make it too complicated..)

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
@mahibi mahibi force-pushed the bugfix/noid/fixUnreadMessageScrollOnEnterChat branch from 706d033 to 20724c5 Compare September 4, 2024 07:49
@mahibi mahibi merged commit 822af2c into master Sep 4, 2024
13 of 17 checks passed
@mahibi mahibi deleted the bugfix/noid/fixUnreadMessageScrollOnEnterChat branch September 4, 2024 07:49
mahibi added a commit that referenced this pull request Sep 4, 2024
(this contains bugs and will be done in PR #4136)

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Copy link
Contributor

github-actions bot commented Sep 4, 2024

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/4136-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 mentioned this pull request Sep 4, 2024
5 tasks
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