Support receiving unidentified messages for dbus

This commit is contained in:
AsamK 2019-11-11 21:29:12 +01:00
parent df81911e44
commit 89552f916b

View file

@ -55,7 +55,7 @@ public class JsonDbusReceiveMessageHandler extends JsonReceiveMessageHandler {
conn.sendSignal(new Signal.MessageReceived(
objectPath,
message.getTimestamp(),
envelope.getSource(),
envelope.isUnidentifiedSender() ? content.getSender() : envelope.getSource(),
message.getGroupInfo().isPresent() ? message.getGroupInfo().get().getGroupId() : new byte[0],
message.getBody().isPresent() ? message.getBody().get() : "",
attachments));