mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-15 20:29:52 +01:00
Implement deleteAllMessages in SocialBackupManagerImpl
This commit is contained in:
@@ -382,7 +382,13 @@ class SocialBackupManagerImpl extends ConversationClientImpl
|
|||||||
@Override
|
@Override
|
||||||
public DeletionResult deleteAllMessages(Transaction txn, ContactId c)
|
public DeletionResult deleteAllMessages(Transaction txn, ContactId c)
|
||||||
throws DbException {
|
throws DbException {
|
||||||
return null;
|
GroupId g = getContactGroup(db.getContact(txn, c)).getId();
|
||||||
|
for (MessageId messageId : db.getMessageIds(txn, g)) {
|
||||||
|
db.deleteMessage(txn, messageId);
|
||||||
|
db.deleteMessageMetadata(txn, messageId);
|
||||||
|
}
|
||||||
|
messageTracker.initializeGroupCount(txn, g);
|
||||||
|
return new DeletionResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user