From f277fcd3411266996bc451cb9abc699fea1f4941 Mon Sep 17 00:00:00 2001 From: James Magahern Date: Sun, 24 Aug 2025 19:46:28 -0700 Subject: [PATCH] sync policy: only ignore empty bodies if there are no attachments --- kordophoned/src/daemon/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kordophoned/src/daemon/mod.rs b/kordophoned/src/daemon/mod.rs index 8481e13..077ec64 100644 --- a/kordophoned/src/daemon/mod.rs +++ b/kordophoned/src/daemon/mod.rs @@ -626,7 +626,10 @@ impl Daemon { // the typing indicator or stuff like that. In the future, we need to move to ChatItems instead of Messages. let insertable_messages: Vec = messages .into_iter() - .filter(|m| !m.text.is_empty() && !m.text.trim().is_empty()) + .filter(|m| { + (!m.text.is_empty() && !m.text.trim().is_empty()) + || !m.file_transfer_guids.is_empty() + }) .collect(); let db_messages: Vec = insertable_messages