Merge pull request #686 from zjs81/fix/copy-full-and-special-messages

Preserve reply mentions and support copying image messages
This commit is contained in:
zjs81 authored and GitHub committed 2026-11-21 09:29:37 -07:00
commit 787f1bb931
6 files changed
+703 -6

No files matched your search

+11
View File
@@ -112,6 +112,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;