Bug 514819

Summary: NeoChat doesn't mark room as read when scrolling up and down the main window
Product: [Applications] NeoChat Reporter: Schrijvers Luc <begasus>
Component: GeneralAssignee: Tobias Fella <fella>
Status: REOPENED ---    
Severity: normal CC: carl, josh
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Other   
OS: Unspecified   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Arrow to go down to the last message doesn't show

Description Schrijvers Luc 2026-01-19 06:29:29 UTC
SUMMARY

NeoChat doesn't mark  room list as read

STEPS TO REPRODUCE
1. build NeoChat with kde-builder
2. launch NeoChat
3. go into a room that has unread messages and scroll up and down

OBSERVED RESULT

Room list still shows unread messages

EXPECTED RESULT

Room list updates and room messages are marked as read

SOFTWARE/OS VERSIONS
Haiku: R1B5 64bitLinux/KDE Plasma: 
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.23.0
Qt Version: 6.10.1

ADDITIONAL INFORMATION
Comment 1 Schrijvers Luc 2026-01-19 06:36:14 UTC
Created attachment 188672 [details]
Arrow to go down to the last message doesn't show

Arrow to go down in the list isn't presented when the room is marked as unread.
Comment 2 Schrijvers Luc 2026-01-19 06:42:34 UTC
In rooms with only like 2 or 3 messages unread those are marked as read by jumping to another room and back, larger list of unread messages don't do this and I manually need to mark the room as read.
Comment 3 Schrijvers Luc 2026-01-19 06:46:43 UTC
Adding a message to the room marks the room as read also, but that should be good (default), just adding in case.
Comment 4 Joshua Goins 2026-01-24 16:26:34 UTC
This was just a temporary failure during another bugfix, this works on git master again.
Comment 5 Joshua Goins 2026-01-24 17:03:10 UTC
Re-opened because the fix isn't perfect
Comment 6 Schrijvers Luc 2026-01-25 04:39:19 UTC
Still happens, this morning in a room with 52 unread messages, scrolling up to the last read one and reading through the log those are not marked as read, going up a bit and clicking the down arrow resolves this though.
A bit of output launched from Terminal:
```
~> kde-builder --run neochat 
Runtime Error: Unable to detect total memory. OS: haiku1
* Will assume the total memory amount is 16777216 bytes.
################################################################################
Executable:         neochat
Arguments:          
PID:                9297
################################################################################

kf.windowsystem: Could not find any platform plugin
quotient.main: Keychain request: app "neochat" id "@begasushaiku:matrix.org-Pickle"
quotient.e2ee: Could not unpickle Olm account for "@begasushaiku:matrix.org(?)"
qrc:/qt/qml/org/kde/neochat/qml/Main.qml:234:9: QML RoomListPage: Created graphical object was not placed in the graphics scene.
qt.multimedia.ffmpeg: Using Qt multimedia with FFmpeg version 6.1.2 LGPL version 3 or later
qrc:/qt/qml/org/kde/neochat/qml/RoomPage.qml:16:1: QML RoomPage: Created graphical object was not placed in the graphics scene.
qrc:/qt/qml/org/kde/neochat/qml/RoomPage.qml:140: TypeError: Cannot call method 'get' of null
qrc:/qt/qml/org/kde/kirigamiaddons/labs/components/Avatar.qml:230:9: QML QQuickImage: Not found (https://matrix-client.matrix.org/_matrix/media/v3/download/node.marinchik.ink/WaJRQJrMeXytAsTgvrJkofVC?allow_remote=true&timeout_ms=20000&allow_redirect=false)
qrc:/qt/qml/org/kde/kirigamiaddons/labs/components/Avatar.qml:230:9: QML QQuickImage: Not found (https://matrix-client.matrix.org/_matrix/media/v3/download/matrix.org/xDiwWVnkJgTbSLquEfNWMgEy?allow_remote=true&timeout_ms=20000&allow_redirect=false)
qrc:/qt/qml/org/kde/kirigamiaddons/labs/components/Avatar.qml:230:9: QML QQuickImage: Not found (https://matrix-client.matrix.org/_matrix/media/v3/download/pyra.sh/rwzvPocfzPMpWIfauYSsBPyP?allow_remote=true&timeout_ms=20000&allow_redirect=false)
quotient.main: CS API versions: r0.0.1 r0.1.0 r0.2.0 r0.3.0 r0.4.0 r0.5.0 r0.6.0 r0.6.1 v1.1 v1.2 v1.3 v1.4 v1.5 v1.6 v1.7 v1.8 v1.9 v1.10 v1.11 v1.12
quotient.main: Room versions: "10" is default, full list: QList("1"/"stable", "2"/"stable", "3"/"stable", "4"/"stable", "5"/"stable", "6"/"stable", "7"/"stable", "8"/"stable", "9"/"stable", "10"/"stable", "11"/"stable", "12"/"stable", "org.matrix.hydra.11"/"unstable", "org.matrix.msc3757.10"/"unstable", "org.matrix.msc3757.11"/"unstable")
quotient.jobs: 400 <- POST https://matrix-client.matrix.org/_matrix/client/v3/keys/upload
quotient.jobs: "UploadKeysJob" status IncorrectRequest: Provided `device_id` in `device_keys` does not match that of the authenticated user device
qrc:/qt/qml/org/kde/kirigamiaddons/labs/components/Avatar.qml:230:9: QML QQuickImage: Not found (https://matrix-client.matrix.org/_matrix/media/v3/download/kde.org/09c473c787e11ca857f1a60e84d38567021411e81957332369639735296?allow_remote=true&timeout_ms=20000&allow_redirect=false)
quotient.jobs: 400 <- POST https://matrix-client.matrix.org/_matrix/client/v3/keys/upload
quotient.jobs: "UploadKeysJob" status IncorrectRequest: Provided `device_id` in `device_keys` does not match that of the authenticated user device
quotient.jobs: 400 <- POST https://matrix-client.matrix.org/_matrix/client/v3/keys/upload
quotient.jobs: "UploadKeysJob" status IncorrectRequest: Provided `device_id` in `device_keys` does not match that of the authenticated user device
quotient.jobs: 400 <- POST https://matrix-client.matrix.org/_matrix/client/v3/keys/upload
quotient.jobs: "UploadKeysJob" status IncorrectRequest: Provided `device_id` in `device_keys` does not match that of the authenticated user device
```