From 915b18789f002fa8f4c50fe1e626d34cc47c5c9b Mon Sep 17 00:00:00 2001 From: fiaxh Date: Fri, 13 Jun 2025 19:38:49 +0200 Subject: Disregard SFS fallback messages even without source attachment given a full-body fallback indication --- libdino/src/util/send_message.vala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libdino/src/util/send_message.vala') diff --git a/libdino/src/util/send_message.vala b/libdino/src/util/send_message.vala index 8312cf17..c320bf7b 100644 --- a/libdino/src/util/send_message.vala +++ b/libdino/src/util/send_message.vala @@ -26,9 +26,10 @@ namespace Dino { out_message.body = fallback + out_message.body; // Store fallback location - var fallback_location = new Xep.FallbackIndication.FallbackLocation.partial_body(0, (int)fallback.char_count()); + var fallback_locations = new ArrayList(); + fallback_locations.add(new Xep.FallbackIndication.FallbackLocation.partial_body(0, (int)fallback.char_count())); var fallback_list = new ArrayList(); - fallback_list.add(new Xep.FallbackIndication.Fallback(Xep.Replies.NS_URI, new Xep.FallbackIndication.FallbackLocation[] { fallback_location })); + fallback_list.add(new Xep.FallbackIndication.Fallback(Xep.Replies.NS_URI, fallback_locations)); out_message.set_fallbacks(fallback_list); // Adjust markups to new prefix -- cgit v1.3