Skip to content

Purged threads still show as unread #18419

@sinteur

Description

@sinteur

Description:

When threads were introduced, we played around with it a bit and disabled it. I had two unread comments in a thread, but after disabling threads the unread counter for the channel was gone. Many releases later, suddenly there was an unread counter for a channel despite the fact that I had read all messages in the channel. Some experimenting later it turned out that when I re-enabled threading, the thread icon had a two unread messages marker. However, since we also have pruning enabled, the old messages were gone, and could not be read, so I am stuck with a "2" badge on the channel that I cannot get rid of.

Steps to reproduce:

  1. enable threading
  2. have unread messages in a thread
  3. disable threading
  4. wait until after pruning.

Expected behavior

Unread badges disappear along with pruned messges/threads.

Actual behavior

Unread badges are kept after pruning and cannot be removed as the messages/threads no longer exists.

  • Version of Rocket.Chat Server: 3.5.0

  • Operating System: linux 3.16.0-10-amd64

  • Deployment Method: docker

  • Number of Running Instances: 2

  • DB Replicaset Oplog: enabled

  • NodeJS Version: v12.16.1

  • MongoDB Version: 4.0.16

  • Desktop App or Browser Version: Any browser. Safari and firefox tested

  • Operating System: Mac OS Catalina

Metadata

Metadata

Assignees

No one assigned

    Labels

    triagedIssue reviewed and properly taggedtype: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions