mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-16 04:39:54 +01:00
Merge branch '322-forum-sharing-client' into 'master'
Forum Sharing Client Backend This MR replaces the old `ForumSharingManagerImpl` with a new one which is based on state machines and the `ProtocolEngine`. There is a `SharerEngine` and a `InviteeEngine` that take care of state transitions, messages, events and trigger actions to be carried out by the `ForumSharingManagerImpl`. This is all very similar to the Introduction Client. The general sharing paradigm has been changed from sharing as a state to sharing as an action. Now the UI can allow users to invite contacts to forums. The contacts can accept or decline the invitation. Also, the Forum Sharing Manager is notified when users leave a forum. Please note that you will need the UI to actually test this. It is coming up soon in another MR. Closes #322 See merge request !170
This commit is contained in:
@@ -3,6 +3,7 @@ package org.briarproject.introduction;
|
||||
import org.briarproject.api.FormatException;
|
||||
import org.briarproject.api.clients.Client;
|
||||
import org.briarproject.api.clients.ClientHelper;
|
||||
import org.briarproject.api.clients.SessionId;
|
||||
import org.briarproject.api.contact.Contact;
|
||||
import org.briarproject.api.contact.ContactId;
|
||||
import org.briarproject.api.contact.ContactManager.AddContactHook;
|
||||
@@ -20,14 +21,12 @@ import org.briarproject.api.introduction.IntroductionManager;
|
||||
import org.briarproject.api.introduction.IntroductionMessage;
|
||||
import org.briarproject.api.introduction.IntroductionRequest;
|
||||
import org.briarproject.api.introduction.IntroductionResponse;
|
||||
import org.briarproject.api.clients.SessionId;
|
||||
import org.briarproject.api.sync.ClientId;
|
||||
import org.briarproject.api.sync.Group;
|
||||
import org.briarproject.api.sync.GroupId;
|
||||
import org.briarproject.api.sync.Message;
|
||||
import org.briarproject.api.sync.MessageId;
|
||||
import org.briarproject.api.sync.MessageStatus;
|
||||
import org.briarproject.api.system.Clock;
|
||||
import org.briarproject.clients.BdfIncomingMessageHook;
|
||||
import org.briarproject.util.StringUtils;
|
||||
|
||||
@@ -93,12 +92,11 @@ class IntroductionManagerImpl extends BdfIncomingMessageHook
|
||||
|
||||
@Inject
|
||||
IntroductionManagerImpl(DatabaseComponent db, ClientHelper clientHelper,
|
||||
MetadataParser metadataParser, Clock clock,
|
||||
IntroducerManager introducerManager,
|
||||
MetadataParser metadataParser, IntroducerManager introducerManager,
|
||||
IntroduceeManager introduceeManager,
|
||||
IntroductionGroupFactory introductionGroupFactory) {
|
||||
|
||||
super(clientHelper, metadataParser, clock);
|
||||
super(clientHelper, metadataParser);
|
||||
this.db = db;
|
||||
this.introducerManager = introducerManager;
|
||||
this.introduceeManager = introduceeManager;
|
||||
|
||||
Reference in New Issue
Block a user