You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The above reproduction steps also work for when the info message is triggered by other chat members.
As was discussed in a chat today, some messages do not trigger the IncomingMsg event. Then only trigger MsgsChanged But currently the IncomingMsg event is what we're listening on to scroll to new messages:
So, as was suggested by @link2xt and @r10s, we probably need to rewrite the code that updates viewState, to update viewState based on actual changes to the array of messages, and not just events, to catch all such cases.
Operating System (Linux/Mac/Windows/iOS/Android): All
Delta Chat Version: 1.48.0
Expected behavior: No matter what message shows up in a chat, we should scroll to it (as long as we're scrolled to the bottom, of course)
Actual behavior: The scroll position remains where it was and you have to scroll to the new message
Steps to reproduce the problem:
.xdc
(webxdc) app.Screenshots:
2024-11-09-yx3KMpXLVI.mp4
Logs:
The above reproduction steps also work for when the info message is triggered by other chat members.
As was discussed in a chat today, some messages do not trigger the
IncomingMsg
event. Then only triggerMsgsChanged
But currently theIncomingMsg
event is what we're listening on to scroll to new messages:deltachat-desktop/packages/frontend/src/stores/messagelist.ts
Lines 65 to 73 in c28d796
deltachat-desktop/packages/frontend/src/stores/chat/chat_view_reducer.ts
Lines 92 to 106 in c28d796
So, as was suggested by @link2xt and @r10s, we probably need to rewrite the code that updates
viewState
, to updateviewState
based on actual changes to the array of messages, and not just events, to catch all such cases.Related older issues: #1783, #1793,
The text was updated successfully, but these errors were encountered: