From 9b763daf52e6f53f0ca38b3b8d1d88368ec79305 Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Tue, 12 Aug 2025 07:55:01 +0200 Subject: [PATCH] notificationsmanager: Don't draw room avatar if it is null Ideally, we painted the avatar with initials here but for now it's better to not paint anything than an awkward white circle. --- src/app/notificationsmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/notificationsmanager.cpp b/src/app/notificationsmanager.cpp index 06f3ea35f..7fe012974 100644 --- a/src/app/notificationsmanager.cpp +++ b/src/app/notificationsmanager.cpp @@ -433,7 +433,7 @@ QPixmap NotificationsManager::createNotificationImage(const QImage &icon, NeoCha if (room != nullptr) { const QImage roomAvatar = room->avatar(imageRect.width(), imageRect.height()); - if (icon != roomAvatar) { + if (!roomAvatar.isNull() && icon != roomAvatar) { const QRect lowerQuarter{imageRect.center(), imageRect.size() / 2}; painter.setBrush(Qt::white);