Skip to content

Conversation

@mahibi
Copy link
Collaborator

@mahibi mahibi commented Dec 10, 2025

resolve #5633

WIP

TODO

🏁 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 this to the 23.0.0 milestone Dec 10, 2025
@mahibi mahibi self-assigned this Dec 10, 2025
@mahibi mahibi force-pushed the feature/5633/chatRelay branch 2 times, most recently from 074dc73 to 2d34ff3 Compare December 15, 2025 16:57
@mahibi mahibi modified the milestones: 22.1.0, 23.0.0 Dec 18, 2025
@mahibi mahibi force-pushed the feature/5633/chatRelay branch from 2d34ff3 to ab134d2 Compare December 19, 2025 08:53
for now, directly passed to ChatActivity and just log it without further processing

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
known issues:
mark chat as read not working (have to use separate endpoint to mark as read)

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
wip:
Maybe trigger it when the user scrolled to the bottom on his own.
E.g. when a scrolling listener tells "scrolling is finished" we check if it's scrolled to the bottom and then send the mark as read

also todo:
mark as read "when the user is sending the app to the background or navigates "back to conversation list" and the last message a user read (saw on screen) is a higher id then the previous known readmarker"

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
known issues: does not work well together with

val weHaveAtLeastTheLastReadMessage = newestMessageIdFromDb >= conversationModel.lastReadMessage.toLong()

for now. (Messages can be missing on initial load)

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
@mahibi mahibi force-pushed the feature/5633/chatRelay branch from ab134d2 to 3127450 Compare December 19, 2025 20:32
@mahibi mahibi added the 2. developing Work in progress label Dec 19, 2025
@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

Codacy

Lint

TypemasterPR
Warnings9999
Errors00

SpotBugs

CategoryBaseNew
Bad practice66
Correctness1010
Dodgy code5455
Internationalization33
Malicious code vulnerability33
Performance44
Security11
Total8182

SpotBugs increased!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing Work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Chat relay via High-performance backend

2 participants