nextcloud / spreed

🗨️ Nextcloud Talk – chat, video & audio calls for Nextcloud
https://nextcloud.com/talk
GNU Affero General Public License v3.0
1.63k stars 436 forks source link

Duplicate messages for initial room loading when using "Scroll to bottom" button #10223

Open miaulalala opened 1 year ago

miaulalala commented 1 year ago

How to use GitHub


Steps to reproduce

  1. Have a room with a lot of unread messages
  2. Click into room
  3. Use scroll to bottom button
  4. Scroll back up again to read the last X messages
  5. ???
  6. After a certain amount of messages, the content is duplicated, i. e. the same messages are displayed again.

I have caught the network request tab as a .har file and sent it to @nickvergessen

Expected behaviour

No duplication of already read messages

Actual behaviour

Some blocks of messages are duplicated

Talk app

Talk app version: c.nc

Custom Signaling server configured: c.nc

Custom TURN server configured: c.nc

Custom STUN server configured: c.nc

Browser

Microphone available: yes

Camera available: yes

Operating system: Ubuntu

Browser name: Chrome

Browser version: Version 116.0.5845.96 (Official Build) (64-bit)

Browser log

``` Insert your browser log here, this could for example include: a) The javascript console log b) The network log c) ... ```

Server configuration

Operating system: Ubuntu/RedHat/...

Web server: Apache/Nginx

Database: MySQL/Maria/SQLite/PostgreSQL

PHP version: 8.0/8.1/8.2

Nextcloud Version: (see admin page)

List of activated apps:

``` If you have access to your command line run e.g.: sudo -u www-data php occ app:list from within your server installation folder ```

Nextcloud configuration:

``` If you have access to your command line run e.g.: sudo -u www-data php occ config:list system from within your Nextcloud installation folder ```

Server log (data/nextcloud.log)

``` Insert your server log here ```
Antreesy commented 1 year ago

Might be related to #10007, as we're fetching messages from two sides of the list (100 items around last unread, and 50 recently posted in chat items). Some of them could contain a parent message, which we also render (don't know why, though, it shouldn't be in the list until I will scroll to it)

Could you post here a screen capture of a bug to understand it better (f.e. a public conversation with unsensitive information)?

UPD: Noticed something similar to the description, but that's probably caused by uploaded later smart references (link preview, GIF, e.t.c.). They extend the height of the list and push content down