From b47cb6377b5a677b80d02165ce1aa29c6c610e40 Mon Sep 17 00:00:00 2001 From: Flohack74 Date: Sat, 10 Mar 2018 17:37:16 +0100 Subject: [PATCH] And fixing a small regression xD --- telegram/push/pushhelper.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/telegram/push/pushhelper.cpp b/telegram/push/pushhelper.cpp index 3358ebea..36ccaa14 100644 --- a/telegram/push/pushhelper.cpp +++ b/telegram/push/pushhelper.cpp @@ -85,10 +85,6 @@ QJsonObject PushHelper::pushToPostalMessage(const QJsonObject &push, QString &ta key = message["loc_key"].toString(); // no-i18n } - //Early bail-out: Telegram server just removes notification, message has been read elsewhere - if (key == "") - return QJsonObject(); - QJsonArray args; if (message.keys().contains("loc_args")) { args = message["loc_args"].toArray(); // no-i18n @@ -104,6 +100,10 @@ QJsonObject PushHelper::pushToPostalMessage(const QJsonObject &push, QString &ta tag = custom["channel_id"].toString(); } + //Early bail-out: Telegram server just removes notification, message has been read elsewhere + if (key == "") + return QJsonObject(); + qint64 chatId = tag.toInt(); // TRANSLATORS: Application name.