aboutsummaryrefslogtreecommitdiff
path: root/libdino/src/service/database.vala
diff options
context:
space:
mode:
authorfiaxh <git@mx.ax.lt>2017-03-12 21:22:45 +0100
committerfiaxh <git@mx.ax.lt>2017-03-12 21:24:25 +0100
commit13cef27d46bb8c3c6a274983fc8569752fb69b5d (patch)
tree6ddde22c3c2b33a932eda8b0b8a7f4266b9db7f0 /libdino/src/service/database.vala
parentc2643a45b0dc05c4fd82ec7d32577700dae7450e (diff)
downloaddino-13cef27d46bb8c3c6a274983fc8569752fb69b5d.tar.gz
dino-13cef27d46bb8c3c6a274983fc8569752fb69b5d.zip
Search messages having a uuid stanza id by id + account
Diffstat (limited to 'libdino/src/service/database.vala')
-rw-r--r--libdino/src/service/database.vala3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdino/src/service/database.vala b/libdino/src/service/database.vala
index 885a1a8f..953fa0b1 100644
--- a/libdino/src/service/database.vala
+++ b/libdino/src/service/database.vala
@@ -293,9 +293,10 @@ public class Database : Qlite.Database {
.count() > 0;
}
- public bool contains_message_by_stanza_id(string stanza_id) {
+ public bool contains_message_by_stanza_id(string stanza_id, Account account) {
return message.select()
.with(message.stanza_id, "=", stanza_id)
+ .with(message.account_id, "=", account.id)
.count() > 0;
}