mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Fix handling data messages of sync messages
This commit is contained in:
parent
e11e020886
commit
ff998fce57
1 changed files with 7 additions and 9 deletions
|
@ -1621,7 +1621,7 @@ public class Manager implements Closeable {
|
||||||
}
|
}
|
||||||
|
|
||||||
final SignalServiceAddress conversationPartnerAddress = isSync ? destination : source;
|
final SignalServiceAddress conversationPartnerAddress = isSync ? destination : source;
|
||||||
if (message.isEndSession()) {
|
if (conversationPartnerAddress != null && message.isEndSession()) {
|
||||||
handleEndSession(conversationPartnerAddress);
|
handleEndSession(conversationPartnerAddress);
|
||||||
}
|
}
|
||||||
if (message.isExpirationUpdate() || message.getBody().isPresent()) {
|
if (message.isExpirationUpdate() || message.getBody().isPresent()) {
|
||||||
|
@ -1638,7 +1638,7 @@ public class Manager implements Closeable {
|
||||||
} else if (message.getGroupContext().get().getGroupV2().isPresent()) {
|
} else if (message.getGroupContext().get().getGroupV2().isPresent()) {
|
||||||
// disappearing message timer already stored in the DecryptedGroup
|
// disappearing message timer already stored in the DecryptedGroup
|
||||||
}
|
}
|
||||||
} else {
|
} else if (conversationPartnerAddress != null) {
|
||||||
ContactInfo contact = account.getContactStore().getContact(conversationPartnerAddress);
|
ContactInfo contact = account.getContactStore().getContact(conversationPartnerAddress);
|
||||||
if (contact == null) {
|
if (contact == null) {
|
||||||
contact = new ContactInfo(conversationPartnerAddress);
|
contact = new ContactInfo(conversationPartnerAddress);
|
||||||
|
@ -2025,13 +2025,11 @@ public class Manager implements Closeable {
|
||||||
if (syncMessage.getSent().isPresent()) {
|
if (syncMessage.getSent().isPresent()) {
|
||||||
SentTranscriptMessage message = syncMessage.getSent().get();
|
SentTranscriptMessage message = syncMessage.getSent().get();
|
||||||
final SignalServiceAddress destination = message.getDestination().orNull();
|
final SignalServiceAddress destination = message.getDestination().orNull();
|
||||||
if (destination != null) {
|
actions.addAll(handleSignalServiceDataMessage(message.getMessage(),
|
||||||
actions.addAll(handleSignalServiceDataMessage(message.getMessage(),
|
true,
|
||||||
true,
|
sender,
|
||||||
sender,
|
destination,
|
||||||
destination,
|
ignoreAttachments));
|
||||||
ignoreAttachments));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (syncMessage.getRequest().isPresent()) {
|
if (syncMessage.getRequest().isPresent()) {
|
||||||
RequestMessage rm = syncMessage.getRequest().get();
|
RequestMessage rm = syncMessage.getRequest().get();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue