Skip to content

Rooms set to "Mentions and Keywords" still show badges for all messages #2583

@andrewmurphyio

Description

@andrewmurphyio

Describe the bug

Rooms with notification mode set to "Mentions and Keywords" incorrectly show unread badges and counts for all messages, not just highlights (mentions).

This is similar to #375 / #2582 (muted rooms showing badges), but affects the MentionsAndKeywords notification type.

Reproduction

  1. Set a room to "Mentions and Keywords" notification mode
  2. Receive regular messages (not mentions) in that room
  3. Observe that the room shows an unread badge with the total message count

Expected behavior

  • Badge should only appear when there are actual highlights (mentions/keywords)
  • Count should show highlight count, not total unread count

Root cause

In src/app/utils/room.ts, the getUnreadInfos() function only filters out Mute rooms:

if (getNotificationType(mx, room.roomId) === NotificationType.Mute) return unread;

For MentionsAndKeywords rooms, it still returns the full total count via getUnreadInfo() instead of filtering to show only highlights.

Platform and versions

  • Cinny version: dev (latest)
  • Browser: All
  • OS: All

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions