mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 02:39:05 +01:00
* If the user has already declined, we don't show that the other introducee has declined as well. The backend doesn't have that information, so this is compatible with the principle of showing what we know. * If the user has already accepted or hasn't yet responded, we show the decline response in the private conversation with the introducer. If the user hasn't yet responded, we hide the accept/decline buttons in the introduction request message. Messages an introducee receives in a `FINISHED` state are now being ignored and deleted. Closes #295
42 lines
1.1 KiB
Java
42 lines
1.1 KiB
Java
package org.briarproject.api.introduction;
|
|
|
|
import org.briarproject.api.identity.AuthorId;
|
|
import org.briarproject.api.sync.MessageId;
|
|
|
|
public class IntroductionRequest extends IntroductionResponse {
|
|
|
|
private final String message;
|
|
private final boolean answered, exists, introducesOtherIdentity;
|
|
|
|
public IntroductionRequest(SessionId sessionId, MessageId messageId,
|
|
int role, long time, boolean local, boolean sent, boolean seen,
|
|
boolean read, AuthorId authorId, String name, boolean accepted,
|
|
String message, boolean answered, boolean exists,
|
|
boolean introducesOtherIdentity) {
|
|
|
|
super(sessionId, messageId, role, time, local, sent, seen, read,
|
|
authorId, name, accepted);
|
|
|
|
this.message = message;
|
|
this.answered = answered;
|
|
this.exists = exists;
|
|
this.introducesOtherIdentity = introducesOtherIdentity;
|
|
}
|
|
|
|
public String getMessage() {
|
|
return message;
|
|
}
|
|
|
|
public boolean wasAnswered() {
|
|
return answered;
|
|
}
|
|
|
|
public boolean contactExists() {
|
|
return exists;
|
|
}
|
|
|
|
public boolean doesIntroduceOtherIdentity() {
|
|
return introducesOtherIdentity;
|
|
}
|
|
}
|