Refactor dialog stuff

This commit is contained in:
Henry Hiles 2026-04-04 18:26:19 -04:00
commit a8383951ba
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
6 changed files with 83 additions and 90 deletions

View file

@ -9,7 +9,7 @@ extension LinkToMention on String {
///
/// Returns the decoded identifier (e.g. "#room:matrix.org")
/// or null if this is not a Matrix link.
String? get mention {
String get mention {
final trimmed = trim();
final matrixTo = RegExp(
@ -39,6 +39,6 @@ extension LinkToMention on String {
} catch (_) {}
}
return null;
return this;
}
}