mirror of
https://github.com/aljazceru/signal-cli.git
synced 2025-12-25 10:04:23 +01:00
Trust address/uuid combination from unidentified sender certificate
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user