Open urbenlegend opened 1 year ago
Hi! Thanks for reporting!
Could you provide some screenshots of your whole screen for better understanding? 2-3 inches
doesn't sound precise to understand the problem
Note: Falsely triggered 'Unread messages" divider seems to create the shift ~40px:
Same would be applied for media files, link previews and other objects, which are loaded asyncronously, and also increase a scrollHeight
https://github.com/nextcloud/spreed/assets/241316/75e53bf4-e08c-412e-b4ca-dfadcc3e5923
Uploaded a screencast to better show the problem. On page refresh, clicking on any chat does not automatically scroll to the bottom of it, even if all messages were read before. Sometimes, the skip to bottom button doesn't appear in a chat even though it is not at the bottom. This happens most often when transitioning from one "non-bottom" chat to another "non-bottom" chat.
After experiencing the bug, going back into that chat correctly scrolls down to the bottom. It seems like this bug really likes to be triggered by a page refresh.
https://github.com/nextcloud/spreed/assets/241316/86cb0597-604f-4975-b9fd-b5954f46e46b
Whoops, forgot the web doesn't support H.265. Here's the video in the correct format.
Issue is still present with Nextcloud Talk 18. I saw a merge request that was closed, did a fix get merged?
Just upgraded to Nextcloud Talk 20 and the scrolling is much better. However, there's still an issue with chat not scrolling all the way down when switching from another Nextcloud app to the Talk app. After opening Talk, the first click into a chat will not be scrolled all the way to the bottom. Clicking on another chat and then returning to the first chat will scroll all the way to the bottom.
This bug should be reopened to address this issue.
Reopening for the fresh triage. Thanks for sharing with us!
Thanks @Antreesy!
Hmm, so another scrolling issue I found is that incoming messages don't seem to scroll properly. It almost seems like the "User is typing" message seems to mess up the scroll position and makes it seem like I haven't scrolled all the way to the bottom even though I have. Then when the incoming message comes in, the scroll doesn't move.
Do I need to clear all chat history in order for this bug fix to take into full effect?
Yeah it seems like incoming messages is still completely broken, but outgoing messages with link previews seems to behave much better.
Link previews and widgets have a dynamic height we can't track, so they always affect scroll position on screen Chat history has nothing to do with it, as we're fetching messages every page reload and ease the list if it's reach 300+ messages in one chat.
As for incoming messages - there might be current tab state involved. If it's not an active tab (or hidden in background), we don't scroll the chat for each new message, assuming that user hasn't read them yet and can miss
Link previews and widgets have a dynamic height we can't track, so they always affect scroll position on screen
So does this mean if link previews and widgets push the chat scroll away from the bottom, it will never go to the most recent message? How do other apps handle this?
Problem is, I miss a ton of messages this way. When chat doesn't scroll to the bottom when Talk is visible, it makes me think no new messages are there. It is also exhausting having to keep scrolling down even though you're actively talking in chat.
there might be current tab state involved.
I just tested with a buddy of mine and I made sure to keep Nextcloud talk active. Incoming messages still did not scroll properly down.
As for incoming messages - there might be current tab state involved. If it's not an active tab (or hidden in background), we don't scroll the chat for each new message, assuming that user hasn't read them yet and can miss
Problem is, I miss a ton of messages this way. When chat doesn't scroll to the bottom when Talk is visible, it makes me think no new messages are there. It is also exhausting having to keep scrolling down even though you're actively talking in chat.
Perhaps automatic scrolling/advancing to the latest message can be an option? We're missing messages frequently due to this, too. Unfortunately I don't have time to do a PR, but would be happy to contribute financially (bounty, etc.) if that's a possibility? We very much appreciate Nextcloud and what you do. Thanks very much.
How to use GitHub
Steps to reproduce
Expected behaviour
Chat should be scrolled to the very last message sent or received.
Actual behaviour
Chat is scrolled to some arbitrary point 2-3 inches above the last message.
Talk app
Talk app version: 17.1.1
Custom Signaling server configured: No
Custom TURN server configured: No
Custom STUN server configured: No
Browser
Microphone available: Yes
Camera available: Yes
Operating system: Arch Linux
Browser name: Firefox and Chrome
Browser version: Firefox 118.0.1 and Chromium 117.0.5938.132
Browser log
Server configuration
Operating system: Arch Linux
Web server: Apache
Database: Maria
PHP version: 8.2.10
Nextcloud Version: 27.1.0.7
List of activated apps:
Nextcloud configuration:
Server log (data/nextcloud.log)