mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 13:19:52 +01:00
implement slightly more of conversation client to get delete messages test passing
This commit is contained in:
@@ -314,7 +314,15 @@ class SocialBackupManagerImpl extends ConversationClientImpl
|
|||||||
@Override
|
@Override
|
||||||
public Set<MessageId> getMessageIds(Transaction txn, ContactId contactId)
|
public Set<MessageId> getMessageIds(Transaction txn, ContactId contactId)
|
||||||
throws DbException {
|
throws DbException {
|
||||||
return null;
|
Contact contact = db.getContact(txn, contactId);
|
||||||
|
GroupId contactGroupId = getContactGroup(contact).getId();
|
||||||
|
try {
|
||||||
|
Map<MessageId, BdfDictionary> messages = clientHelper
|
||||||
|
.getMessageMetadataAsDictionary(txn, contactGroupId);
|
||||||
|
return messages.keySet();
|
||||||
|
} catch (FormatException e) {
|
||||||
|
throw new DbException(e);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -326,7 +334,8 @@ class SocialBackupManagerImpl extends ConversationClientImpl
|
|||||||
@Override
|
@Override
|
||||||
public DeletionResult deleteMessages(Transaction txn, ContactId c,
|
public DeletionResult deleteMessages(Transaction txn, ContactId c,
|
||||||
Set<MessageId> messageIds) throws DbException {
|
Set<MessageId> messageIds) throws DbException {
|
||||||
return null;
|
DeletionResult result = new DeletionResult();
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setContactId(Transaction txn, GroupId g, ContactId c)
|
private void setContactId(Transaction txn, GroupId g, ContactId c)
|
||||||
|
|||||||
Reference in New Issue
Block a user