-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Purged threads still show as unread #18419
Description
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:
- enable threading
- have unread messages in a thread
- disable threading
- 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