Private
Public Access
1
0

Switch from Entry to TextView for multiline, paste support for attachments

This commit is contained in:
2025-06-12 20:35:56 -07:00
parent 137da5b3d1
commit 6fb88c3a0d
7 changed files with 179 additions and 22 deletions

View File

@@ -16,6 +16,17 @@ public class Message : Object
}
}
public bool is_attachment_marker {
get {
uint8[] attachment_marker_str = { 0xEF, 0xBF, 0xBC, 0x00 };
if (text.length > attachment_marker_str.length) {
return false;
}
return (string)attachment_marker_str == text;
}
}
public Message(string text, DateTime date, string? sender) {
this.text = text;
this.date = date;