mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 10:30:38 +00:00
Add workaround for #1045
This commit is contained in:
parent
2e5d8fe561
commit
3f7d8c60b9
1 changed files with 8 additions and 1 deletions
|
@ -144,7 +144,14 @@ public final class IncomingMessageHandler {
|
|||
} else {
|
||||
final var senderProfile = context.getProfileHelper().getRecipientProfile(sender);
|
||||
final var selfProfile = context.getProfileHelper().getSelfProfile();
|
||||
final var serviceId = ServiceId.parseOrNull(e.getSender());
|
||||
var serviceId = ServiceId.parseOrNull(e.getSender());
|
||||
if (serviceId == null) {
|
||||
// Workaround for libsignal-client issue #492
|
||||
serviceId = account.getRecipientAddressResolver()
|
||||
.resolveRecipientAddress(sender)
|
||||
.serviceId()
|
||||
.orElse(null);
|
||||
}
|
||||
if (serviceId != null) {
|
||||
final var isSelf = sender.equals(account.getSelfRecipientId())
|
||||
&& e.getSenderDevice() == account.getDeviceId();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue