nextcloud / nextcloud/spreed

[Bug]: Talk system messages delay loading

Open
#17,937 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feature: api 🛠️ feature: chat 💬 performance 🚀
Dominant language
JavaScript
Stars
2.2k
Forks
586
Avg merge
18h 27m
Merged PRs (30d)
333

Description

⚠️ This issue respects the following points: ⚠️
Bug description

One of our company-wide chatrooms recently got cleaned up, i.e. ~50 old/inactive/deleted users were removed at once. This generated the according amount of system messages mentioning the removal of each specific user. These messages also get merged into a single appearing line just fine as expected. Though due to them being so many, I assume it takes quite a while for the client to start loading in previous messages. So when a user opens up the chat, he sees the system messages only (basically an empty chat), having to wait for previous messages to load in.

Steps to reproduce
  1. Create a group with 50+ users.
  2. Remove 50 users from the chat at once.
  3. Reload the chat window (Ctrl + F5)
Expected behavior

The merged system messages (single line) and X previous messages load in right away. I.e. system messages do not count against the default count of messages to be loaded when opening a chat.

Nextcloud Server version

32

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report

List of activated Apps

Nextcloud Signing status

Nextcloud Logs

Additional info

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by tracing the chat history loading and pagination path used when a chat window reloads, then inspect how merged system messages affect the initial message count; done means previous messages appear immediately alongside the merged system messages after reproducing the 50-user removal case.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.