add debug output to how many messages were deleted
This commit is contained in:
parent
bf95ef66eb
commit
e2ff51db08
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue