aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-04-29 23:32:29 +0200
committerChristian Schneppe <christian@pix-art.de>2018-04-29 23:32:29 +0200
commitca556ec916c2bb034d0edc8f1a02ffc0b10c3457 (patch)
tree21eba3ea5efa22a73196008d0fc61730e8309115 /src/main
parent8ee27875c3bd9a3270973575c441a70cacb38bef (diff)
add debug output to how many messages were deleted
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/de/pixart/messenger/persistance/DatabaseBackend.java5
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) {