(cherry picked from commit 642460af982d797a2e24e4da3d76f58682af88f5)
This commit is contained in:
Stephen Paul Weber 2024-07-15 08:56:53 -05:00 committed by Arne
parent 082eb4a9c0
commit 59c475af9b

View file

@ -522,8 +522,8 @@ public class MessageParser extends AbstractParser implements OnMessagePacketRece
if (handleErrorMessage(account, packet)) {
return;
}
final var contact = account.getRoster().getContact(packet.getFrom());
if (contact.isBlocked()) {
final var contact = packet.getFrom() == null ? null : account.getRoster().getContact(packet.getFrom());
if (contact != null && contact.isBlocked()) {
Log.d(Config.LOGTAG, "Got MAM result from blocked contact, ignoring...");
return;
}