aboutsummaryrefslogtreecommitdiffstats
path: root/src/de/gultsch/chat/persistance
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-02-11 23:55:03 +0100
committerDaniel Gultsch <daniel.gultsch@rwth-aachen.de>2014-02-11 23:55:03 +0100
commite63109215e9dda9152f0bc92bf230b652413a677 (patch)
treea9d743acde7d0b41fafc4b809d699064f76deadf /src/de/gultsch/chat/persistance
parentf6a6982bd0232fed847d4d32103a999aa6f94cd5 (diff)
offline messages
Diffstat (limited to 'src/de/gultsch/chat/persistance')
-rw-r--r--src/de/gultsch/chat/persistance/DatabaseBackend.java8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/de/gultsch/chat/persistance/DatabaseBackend.java b/src/de/gultsch/chat/persistance/DatabaseBackend.java
index f746f447..25a96f46 100644
--- a/src/de/gultsch/chat/persistance/DatabaseBackend.java
+++ b/src/de/gultsch/chat/persistance/DatabaseBackend.java
@@ -176,8 +176,6 @@ public class DatabaseBackend extends SQLiteOpenHelper {
public void deleteAccount(Account account) {
SQLiteDatabase db = this.getWritableDatabase();
String[] args = { account.getUuid() };
- Log.d("gultsch", "backend trying to delete account with uuid:"
- + account.getUuid());
db.delete(Account.TABLENAME, Account.UUID + "=?", args);
}
@@ -263,4 +261,10 @@ public class DatabaseBackend extends SQLiteOpenHelper {
cursor.moveToFirst();
return Contact.fromCursor(cursor);
}
+
+ public void deleteMessage(Message message) {
+ SQLiteDatabase db = this.getWritableDatabase();
+ String[] args = { message.getUuid() };
+ db.delete(Message.TABLENAME, Message.UUID + "=?", args);
+ }
}