about summary refs log tree commit diff
path: root/LibMatrix/Helpers/MessageBuilder.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-07-05 22:26:29 +0200
committerRory& <root@rory.gay>2026-07-05 22:26:29 +0200
commit8a30a09e75ccdd5b1b570f9d3bfe9cc38a322718 (patch)
tree139f6250dac3851bc0d72a204d530cd7963acd8e /LibMatrix/Helpers/MessageBuilder.cs
parentMore verbose/typed handling for errors resolving homeservers (diff)
downloadLibMatrix-8a30a09e75ccdd5b1b570f9d3bfe9cc38a322718.tar.xz
Don't put an @ in front of plaintext mentions
Diffstat (limited to 'LibMatrix/Helpers/MessageBuilder.cs')
-rw-r--r--LibMatrix/Helpers/MessageBuilder.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/LibMatrix/Helpers/MessageBuilder.cs b/LibMatrix/Helpers/MessageBuilder.cs

index f753bf7..c6f8ea1 100644 --- a/LibMatrix/Helpers/MessageBuilder.cs +++ b/LibMatrix/Helpers/MessageBuilder.cs
@@ -96,7 +96,7 @@ public class MessageBuilder(string msgType = "m.text", string format = "org.matr } public MessageBuilder WithMention(string id, string? displayName = null, string[]? vias = null, bool useIdInPlainText = false, bool useLinkInPlainText = false) { - if (!useLinkInPlainText) Content.Body += $"@{(useIdInPlainText ? id : displayName ?? id)}"; + if (!useLinkInPlainText) Content.Body += $"{(useIdInPlainText ? id : displayName ?? id)}"; else { Content.Body += $"https://matrix.to/#/{id}"; if (vias is { Length: > 0 }) Content.Body += $"?via={string.Join("&via=", vias)}";