diff options
author | fiaxh <git@lightrise.org> | 2020-03-03 15:14:31 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2020-03-03 15:14:31 +0100 |
commit | b8b3e1c6f517a18a917250f17a64ba1bd19140a8 (patch) | |
tree | d209b6786b75a01d4b5670a125ec945218e686a5 /libdino/src/service/database.vala | |
parent | 17acdd9f414a9e4d6a0607e94b03792581ff03df (diff) | |
download | dino-b8b3e1c6f517a18a917250f17a64ba1bd19140a8.tar.gz dino-b8b3e1c6f517a18a917250f17a64ba1bd19140a8.zip |
Improve MUC message resending
Diffstat (limited to 'libdino/src/service/database.vala')
-rw-r--r-- | libdino/src/service/database.vala | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/libdino/src/service/database.vala b/libdino/src/service/database.vala index 39dcf234..238d8f46 100644 --- a/libdino/src/service/database.vala +++ b/libdino/src/service/database.vala @@ -400,24 +400,6 @@ public class Database : Qlite.Database { return ret; } - public Gee.List<Message> get_unsend_messages(Account account, Jid? jid = null) { - Gee.List<Message> ret = new ArrayList<Message>(); - var select = message.select() - .with(message.account_id, "=", account.id) - .with(message.marked, "=", (int) Message.Marked.UNSENT); - if (jid != null) { - select.with(message.counterpart_id, "=", get_jid_id(jid)); - } - foreach (Row row in select) { - try { - ret.add(new Message.from_row(this, row)); - } catch (InvalidJidError e) { - warning("Ignoring message with invalid Jid: %s", e.message); - } - } - return ret; - } - public Message? get_message_by_id(int id) { Row? row = message.row_with(message.id, id).inner; if (row != null) { |