Preserve reply mentions and support copying image messages

This commit is contained in:
zjs81 committed 2026-11-21 08:03:25 -07:00
1 parent ae967ec21f
commit ee7b4c8f8b
6 files changed
+703 -6

No files matched your search

+11
View File
@@ -109,6 +109,17 @@ class ChannelMessage {
bool get isFiltered => filterReason != null;
/// Full wire/sent text, restoring the `@[sender] ` reply prefix when it
/// was split into [replyToSenderName] on storage.
String get fullText {
if (replyToMessageId != null &&
replyToSenderName != null &&
replyToSenderName!.isNotEmpty) {
return '@[$replyToSenderName] $text';
}
return text;
}
String? get senderKeyHex =>
senderKey != null ? pubKeyToHex(senderKey!) : null;