Small improvements to DB interface.

This commit is contained in:
akwizgran
2016-01-19 10:55:46 +00:00
parent 5355951466
commit 77054cbae7
9 changed files with 99 additions and 79 deletions

View File

@@ -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();
}