add debug output to how many messages were deleted

This commit is contained in:
Daniel Gultsch 2018-04-25 19:32:43 +02:00
parent bf95ef66eb
commit e2ff51db08

View file

@ -872,9 +872,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) {