mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 20:59:54 +01:00
Small improvements to DB interface.
This commit is contained in:
@@ -82,7 +82,7 @@ class MessagingManagerImpl implements MessagingManager {
|
||||
Group conversation = createConversationGroup(db.getContact(c));
|
||||
// Subscribe to the group and share it with the contact
|
||||
db.addGroup(conversation);
|
||||
db.addGroup(c, conversation);
|
||||
db.addContactGroup(c, conversation);
|
||||
db.setVisibility(conversation.getId(), Collections.singletonList(c));
|
||||
}
|
||||
|
||||
@@ -141,7 +141,6 @@ class MessagingManagerImpl implements MessagingManager {
|
||||
|
||||
@Override
|
||||
public GroupId getConversationId(ContactId c) throws DbException {
|
||||
// TODO: Make this more efficient
|
||||
return createConversationGroup(db.getContact(c)).getId();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user