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:
- Go to 'Settings->Manage Accounts'
- Click on an account, then 'Set Prefix'
- Set prefix to “
e ”
- Type a message in a group with that account in it that reads: "elderberries"
- 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
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:
e”Expected behavior
The prefix should only trigger on messages that start with “
e”, including the space.Device Information
Device
Platform:
linuxVersion:
v0.4.1Git Hash:
c2ee370d18c822673b24b6579842a01b971b1584Detail:
debianBuild Timestamp:
1772620801855 (March 4, 2026)System Info
Name:
EndeavourOSDisplay Server:
waylandDesktop Environment:
wayland