Try to make windows notifications prettier

This commit is contained in:
Nicolas Werner 2023-12-10 04:53:44 +01:00
parent 791cb660b5
commit 4142703990
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
5 changed files with 35 additions and 12 deletions

View file

@ -114,7 +114,8 @@ NotificationsManager::postNotification(const mtx::responses::Notification &notif
if (hasMarkup_) {
if (hasImages_ &&
mtx::accessors::msg_type(notification.event) == mtx::events::MessageType::Image) {
(mtx::accessors::msg_type(notification.event) == mtx::events::MessageType::Image ||
mtx::accessors::msg_type(notification.event) == mtx::events::MessageType::Image)) {
MxcImageProvider::download(
QString::fromStdString(mtx::accessors::url(notification.event))
.remove(QStringLiteral("mxc://")),