aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/util
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2025-06-13 19:38:49 +0200
committerfiaxh <git@lightrise.org>2025-06-13 19:40:09 +0200
commit915b18789f002fa8f4c50fe1e626d34cc47c5c9b (patch)
tree34fc929c3dd7543cafa971e6b86ac2d2c5b3c15d /libdino/src/util
parent2e6454a92e85e87e17ce88924155d825b2b6eca3 (diff)
Disregard SFS fallback messages even without source attachment given a full-body fallback indication
Diffstat (limited to 'libdino/src/util')
-rw-r--r--libdino/src/util/send_message.vala5
1 files changed, 3 insertions, 2 deletions
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<Xep.FallbackIndication.FallbackLocation>();
+ fallback_locations.add(new Xep.FallbackIndication.FallbackLocation.partial_body(0, (int)fallback.char_count()));
var fallback_list = new ArrayList<Xep.FallbackIndication.Fallback>();
- 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