From db831f5a0ad2a549f20d4d61cbe6eefc36254c4e Mon Sep 17 00:00:00 2001 From: "Sebastian J. Wolf" Date: Tue, 15 Sep 2020 21:37:24 +0200 Subject: [PATCH] Detect channel properly for notifications --- src/notificationmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/notificationmanager.cpp b/src/notificationmanager.cpp index 33c7bfe..5a5a5c0 100644 --- a/src/notificationmanager.cpp +++ b/src/notificationmanager.cpp @@ -167,7 +167,7 @@ QVariantMap NotificationManager::sendNotification(const QString &chatId, const Q QVariantMap chatInformation = this->chatMap.value(chatId).toMap(); QString chatType = chatInformation.value("type").toMap().value("@type").toString(); bool addAuthor = false; - if (chatType == "chatTypeBasicGroup" || ( chatType == "chatTypeSupergroup" && !chatInformation.value("type").toMap().value("@is_channel").toBool() )) { + if (chatType == "chatTypeBasicGroup" || ( chatType == "chatTypeSupergroup" && !chatInformation.value("@type").toMap().value("is_channel").toBool() )) { addAuthor = true; }