diff options
author | fiaxh <git@lightrise.org> | 2024-07-26 19:10:35 +0200 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2024-07-29 13:15:14 +0200 |
commit | ceb921a0148f7fdc2a9df3e6b85143bf8c26c341 (patch) | |
tree | bdbfe4523453b29fa962d36121be40f5ee147e18 /libdino/src/service/fallback_body.vala | |
parent | ca980ea409b75025aa8218782d415ba9cf69e1c6 (diff) | |
download | dino-ceb921a0148f7fdc2a9df3e6b85143bf8c26c341.tar.gz dino-ceb921a0148f7fdc2a9df3e6b85143bf8c26c341.zip |
Store reply message as sent, with fallback
Diffstat (limited to 'libdino/src/service/fallback_body.vala')
-rw-r--r-- | libdino/src/service/fallback_body.vala | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/libdino/src/service/fallback_body.vala b/libdino/src/service/fallback_body.vala index 13323427..0ce89ade 100644 --- a/libdino/src/service/fallback_body.vala +++ b/libdino/src/service/fallback_body.vala @@ -46,20 +46,9 @@ public class Dino.FallbackBody : StreamInteractionModule, Object { if (fallbacks.is_empty) return false; foreach (var fallback in fallbacks) { - if (fallback.ns_uri != Xep.Replies.NS_URI) continue; - - foreach (var location in fallback.locations) { - db.body_meta.insert() - .value(db.body_meta.message_id, message.id) - .value(db.body_meta.info_type, Xep.FallbackIndication.NS_URI) - .value(db.body_meta.info, fallback.ns_uri) - .value(db.body_meta.from_char, location.from_char) - .value(db.body_meta.to_char, location.to_char) - .perform(); - } - - message.set_fallbacks(fallbacks); + if (fallback.ns_uri != Xep.Replies.NS_URI) continue; // TODO what if it's not } + message.set_fallbacks(fallbacks); return false; } |