Nheko-Reborn / nheko

Desktop client for Matrix using Qt and C++20.
https://nheko-reborn.github.io/
GNU General Public License v3.0
1.94k stars 201 forks source link

Chat log is cleared when many messages are received at once #1670

Open progval opened 9 months ago

progval commented 9 months ago

Describe the bug

When Nheko receives many messages at once (or, more likely, while a computer is suspended)

To Reproduce

  1. Join a chat room
  2. Send a SIGSTOP to Nheko (to emulate the computer being suspended or hibernated)
  3. Send 11 or more messages to the room from a different user
  4. Send SIGCONT to Nheko (to emulate the computer resuming)

What happened?

Chatlog of the current room is gone, scrolling up does nothing

Expected behavior

all messages should be displayed

Screenshots

seen from Eleweb:

Screenshot 2024-01-22 at 21-55-42 Element val (@val trix re)

seen from Nheko (suspended between "oh no" and "a"):

screenshot-2024-01-22_21-55-55

Version

0.11.3-2 (from Debian 12)

Operating system

Linux

Installation method

Some repository (AUR, homebrew, distribution repository, PPA, etc)

Qt version

5.15.8

C++ compiler

No response

Desktop Environment

Sway 1.7-6, Wayland 1.21.0-1

Did you use profiles?

Relevant log output

No response

Backtrace

No response

progval commented 9 months ago

(btw my server is Conduit's next branch)