diff --git a/src/notificationsmanager.cpp b/src/notificationsmanager.cpp index 20dc38988..d46e6e700 100644 --- a/src/notificationsmanager.cpp +++ b/src/notificationsmanager.cpp @@ -34,7 +34,13 @@ void NotificationsManager::postNotification(const QString &roomid, const QString QPixmap img; img.convertFromImage(icon); KNotification *notification = new KNotification("message"); - notification->setTitle(i18n("%1 (%2)", sender, roomname)); + + if (sender == roomname) { + notification->setTitle(sender); + } else { + notification->setTitle(i18n("%1 (%2)", sender, roomname)); + } + notification->setText(text.toHtmlEscaped()); notification->setPixmap(img); notification->sendEvent();