Add handling for reply_quoted_content in LXMF message parsing to support quoted replies

This commit is contained in:
Sudo-Ivan
2026-03-05 15:16:33 -06:00
parent 685df6c640
commit 39ef2323ff
+6
View File
@@ -101,6 +101,12 @@ def convert_lxmf_message_to_dict(
# handle reply_to field
if field_type == 0x30:
fields["reply_to"] = value.hex() if isinstance(value, bytes) else value
if field_type == 0x31:
fields["reply_quoted_content"] = (
value.decode("utf-8", errors="replace")
if isinstance(value, bytes)
else value
)
# convert 0.0-1.0 progress to 0.00-100 percentage
progress_percentage = round(lxmf_message.progress * 100, 2)