aboutsummaryrefslogtreecommitdiffstats
path: root/src/eu/siacs/conversations/persistance/DatabaseBackend.java
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2014-04-20 20:48:16 +0200
committerDaniel Gultsch <daniel@gultsch.de>2014-04-20 20:48:16 +0200
commitd140ef63903ac36a39bc558aa4b9aa319aed0b08 (patch)
treef1fd1517f50693877f9d229b1ac6f867247a33f9 /src/eu/siacs/conversations/persistance/DatabaseBackend.java
parent8003e53013b72736db2137c51400fd0c5f124ffb (diff)
fixed #50
Diffstat (limited to 'src/eu/siacs/conversations/persistance/DatabaseBackend.java')
-rw-r--r--src/eu/siacs/conversations/persistance/DatabaseBackend.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/eu/siacs/conversations/persistance/DatabaseBackend.java b/src/eu/siacs/conversations/persistance/DatabaseBackend.java
index ad4555c2..c8c974de 100644
--- a/src/eu/siacs/conversations/persistance/DatabaseBackend.java
+++ b/src/eu/siacs/conversations/persistance/DatabaseBackend.java
@@ -288,6 +288,12 @@ public class DatabaseBackend extends SQLiteOpenHelper {
String[] args = { message.getUuid() };
db.delete(Message.TABLENAME, Message.UUID + "=?", args);
}
+
+ public void deleteMessagesInConversation(Conversation conversation) {
+ SQLiteDatabase db = this.getWritableDatabase();
+ String[] args = { conversation.getUuid() };
+ db.delete(Message.TABLENAME, Message.CONVERSATION + "=?", args);
+ }
public void deleteContact(Contact contact) {
SQLiteDatabase db = this.getWritableDatabase();