Skip to content

Last message preview text is inconsistent between LHN and the Search / Chat Switcher list #98958

Description

@melvin-bot

The last-message preview (alt text) shown for a report in the Search recent chats / Chat Switcher list does not match the preview shown for the same report in the LHN (sidebar). They should be identical.

Known differences observed so far:

  • Actor prefixes are missing in the Search list. In rooms/groups, the LHN prepends the sender to the preview (e.g. Actor: message), but the Search list shows the bare message with no actor prefix.
  • The You: prefix is missing in the Search list for messages sent by the current user.

Context / history

This appears to be an accidental regression from the Search↔LHN decoupling refactor in #67073. The goal there was to decouple Search from the LHN for performance and DX reasons; keeping the previews identical was most likely missed. sosek108 has confirmed it's a bug and is preparing a fix, and may surface additional inconsistencies while investigating.

Expected behavior

Text previews in the Search / Chat Switcher list should stay identical to what the LHN displays for the same report — including actor prefixes (Actor: in rooms/groups) and the You: distinction.

Reported in Slack.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions