Use Client Layer Events in ContactListFragment

This prevents trying to access the same group metadata in different groups.
Also, the conversation does not need to be reloaded once introduction messages arrive.

Closes #535
This commit is contained in:
Torsten Grote
2016-07-28 14:30:18 -03:00
parent 04d2ede2e1
commit 3d22d43868
5 changed files with 42 additions and 22 deletions

View File

@@ -2,7 +2,6 @@ package org.briarproject.api.event;
import org.briarproject.api.contact.ContactId;
import org.briarproject.api.forum.Forum;
import org.briarproject.api.introduction.IntroductionRequest;
public class ForumInvitationReceivedEvent extends InvitationReceivedEvent {

View File

@@ -1,13 +1,12 @@
package org.briarproject.api.event;
import org.briarproject.api.contact.ContactId;
import org.briarproject.api.forum.Forum;
public abstract class InvitationReceivedEvent extends Event {
private final ContactId contactId;
public InvitationReceivedEvent(ContactId contactId) {
InvitationReceivedEvent(ContactId contactId) {
this.contactId = contactId;
}

View File

@@ -22,7 +22,7 @@ public interface SharingMessage {
private final GroupId groupId;
private final SessionId sessionId;
public BaseMessage(GroupId groupId, SessionId sessionId) {
BaseMessage(GroupId groupId, SessionId sessionId) {
this.groupId = groupId;
this.sessionId = sessionId;