diff options
-rw-r--r-- | src/main/java/de/pixart/messenger/persistance/DatabaseBackend.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/de/pixart/messenger/persistance/DatabaseBackend.java b/src/main/java/de/pixart/messenger/persistance/DatabaseBackend.java index a773c4cb9..480f2d941 100644 --- a/src/main/java/de/pixart/messenger/persistance/DatabaseBackend.java +++ b/src/main/java/de/pixart/messenger/persistance/DatabaseBackend.java @@ -884,9 +884,10 @@ public class DatabaseBackend extends SQLiteOpenHelper { } public void deleteMessagesInConversation(Conversation conversation) { - SQLiteDatabase db = this.getWritableDatabase(); + final SQLiteDatabase db = this.getWritableDatabase(); String[] args = {conversation.getUuid()}; - db.delete(Message.TABLENAME, Message.CONVERSATION + "=?", args); + int num = db.delete(Message.TABLENAME, Message.CONVERSATION + "=?", args); + Log.d(Config.LOGTAG, "deleted " + num + " messages for " + conversation.getJid().asBareJid()); } public boolean expireOldMessages(long timestamp) { |