Trust address/uuid combination from unidentified sender certificate

This commit is contained in:
AsamK 2021-05-09 19:48:51 +02:00
parent 3643d57d0e
commit 7364f0f7cf

View file

@ -1839,6 +1839,7 @@ public class Manager implements Closeable {
if (envelope.hasSource()) {
// Store uuid if we don't have it already
// address/uuid in envelope is sent by server
resolveRecipientTrusted(envelope.getSourceAddress());
}
final var notAGroupMember = isNotAGroupMember(envelope, content);
@ -1848,6 +1849,11 @@ public class Manager implements Closeable {
} catch (Exception e) {
exception = e;
}
if (!envelope.hasSource() && content != null) {
// Store uuid if we don't have it already
// address/uuid is validated by unidentified sender certificate
resolveRecipientTrusted(content.getSender());
}
var actions = handleMessage(envelope, content, ignoreAttachments);
if (exception instanceof ProtocolInvalidMessageException) {
final var sender = resolveRecipient(((ProtocolInvalidMessageException) exception).getSender());