Skip to content

User prefixes ending in a space not supported #875

@athena-luka

Description

@athena-luka

Describe the bug
Currently, trailing spaces are trimmed from user prefixes. If somebody, for example, sets a prefix “e ”, then any message starting with an “e” will be sent as that account.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Settings->Manage Accounts'
  2. Click on an account, then 'Set Prefix'
  3. Set prefix to “e
  4. Type a message in a group with that account in it that reads: "elderberries"
  5. The message will become "derberries" and sent from the account with the prefix.

Expected behavior
The prefix should only trigger on messages that start with “e ”, including the space.

Device Information

Device
Platform: linux
Version: v0.4.1
Git Hash: c2ee370d18c822673b24b6579842a01b971b1584
Detail: debian
Build Timestamp: 1772620801855 (March 4, 2026)

System Info
Name: EndeavourOS

Display Server: wayland
Desktop Environment: wayland

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