Reduce usage of deprecated resolved methods

This commit is contained in:
AsamK 2021-05-04 21:18:25 +02:00
parent 5427fa0132
commit 3357945a5a
2 changed files with 22 additions and 32 deletions

View file

@ -414,7 +414,7 @@ public class DbusSignalImpl implements Signal {
final var address = m.resolveSignalServiceAddress(recipientId);
var number = address.getNumber().orNull();
if (number != null) {
var profile = m.getRecipientProfile(address);
var profile = m.getRecipientProfile(recipientId);
if (profile != null && profile.getDisplayName().equals(name)) {
numbers.add(number);
}