diff options
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) { |