Add basic sealed sender support

This commit is contained in:
kpcyrd 2019-11-11 04:34:04 +01:00 committed by AsamK
parent 9d836414f0
commit 209c613e43
2 changed files with 9 additions and 2 deletions

View file

@ -19,6 +19,9 @@ class JsonMessageEnvelope {
public JsonMessageEnvelope(SignalServiceEnvelope envelope, SignalServiceContent content) {
SignalServiceAddress source = envelope.getSourceAddress();
this.source = source.getNumber();
if (this.source.equals("")) {
this.source = content.getSender();
}
this.sourceDevice = envelope.getSourceDevice();
this.relay = source.getRelay().isPresent() ? source.getRelay().get() : null;
this.timestamp = envelope.getTimestamp();