Do not create PeerSession for groups we created

This needs a CreatorSession which gets created on-demand.
This commit is contained in:
Torsten Grote
2021-01-14 14:02:00 -03:00
parent 2ddb7b5b64
commit c4c70f5ac2
6 changed files with 51 additions and 7 deletions

View File

@@ -109,6 +109,11 @@ public interface PrivateGroupManager {
Collection<PrivateGroup> getPrivateGroups(Transaction txn)
throws DbException;
/**
* Returns true if the private group with the given ID was created by us.
*/
boolean isOurPrivateGroup(Transaction txn, GroupId g) throws DbException;
/**
* Returns the text of the private group message with the given ID.
*/