mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Store number/uuid in recipient store after receiving a message
Necessary to find the correct session if the sender send the next message with only the uuid. Fixes #309
This commit is contained in:
parent
b382a4260b
commit
e048b1886d
1 changed files with 8 additions and 0 deletions
|
@ -1411,6 +1411,11 @@ public class Manager implements Closeable {
|
|||
System.err.println("Ignoring error: " + e.getMessage());
|
||||
continue;
|
||||
}
|
||||
if (envelope.hasSource()) {
|
||||
// Store uuid if we don't have it already
|
||||
SignalServiceAddress source = envelope.getSourceAddress();
|
||||
resolveSignalServiceAddress(source);
|
||||
}
|
||||
if (!envelope.isReceipt()) {
|
||||
try {
|
||||
content = decryptMessage(envelope);
|
||||
|
@ -1472,6 +1477,9 @@ public class Manager implements Closeable {
|
|||
} else {
|
||||
sender = content.getSender();
|
||||
}
|
||||
// Store uuid if we don't have it already
|
||||
resolveSignalServiceAddress(sender);
|
||||
|
||||
if (content.getDataMessage().isPresent()) {
|
||||
SignalServiceDataMessage message = content.getDataMessage().get();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue