Fix notification display name

This commit is contained in:
Niels Andriesse 2020-01-22 15:11:14 +11:00
parent 61976ac363
commit d0225bdffb

View File

@ -129,7 +129,9 @@ public class SingleRecipientNotificationBuilder extends AbstractNotificationBuil
} else { } else {
displayName = DatabaseFactory.getLokiUserDatabase(context).getDisplayName(hexEncodedPublicKey); displayName = DatabaseFactory.getLokiUserDatabase(context).getDisplayName(hexEncodedPublicKey);
} }
stringBuilder.append(Util.getBoldedString(displayName + ": ")); if (displayName != null) {
stringBuilder.append(Util.getBoldedString(displayName + ": "));
}
} }
if (privacy.isDisplayMessage()) { if (privacy.isDisplayMessage()) {