Tag messages with originating session
This can be used later in order to display trust status of messages, as well as for potential resending of messages in case of preKey conflicts.
This commit is contained in:
parent
a58d5e8ce3
commit
ab2f85d2e8
|
@ -75,6 +75,11 @@ public class XmppAxolotlMessage {
|
|||
public String getPlaintext() {
|
||||
return plaintext;
|
||||
}
|
||||
|
||||
public AxolotlService.XmppAxolotlSession getSession() {
|
||||
return session;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public XmppAxolotlMessage(Contact contact, Element axolotlMessage) {
|
||||
|
|
|
@ -660,4 +660,8 @@ public class Message extends AbstractEntity {
|
|||
public boolean isTrusted() {
|
||||
return this.axolotlSession != null && this.axolotlSession.isTrusted();
|
||||
}
|
||||
|
||||
public void setAxolotlSession(AxolotlService.XmppAxolotlSession session) {
|
||||
this.axolotlSession = session;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue