From 9ac7fcfef0f4cb7b64f07e345afae918c82937b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Drobni=C4=8D?= Date: Wed, 23 Nov 2016 09:35:09 +0100 Subject: [PATCH] Fixed sometimes blank list notifications with image sending enabled. --- src/NotificationsWindow/Comm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NotificationsWindow/Comm.c b/src/NotificationsWindow/Comm.c index 8d0ae2f..4cb7b63 100644 --- a/src/NotificationsWindow/Comm.c +++ b/src/NotificationsWindow/Comm.c @@ -185,6 +185,8 @@ static void received_message_new_notification(DictionaryIterator *received) notification->imageSize = configBytes[11] << 8 | configBytes[12]; #endif + nw_confirm_notification(notification->id); + if (notification->inList) { for (int i = 0; i < numOfNotifications; i++) @@ -201,8 +203,6 @@ static void received_message_new_notification(DictionaryIterator *received) } } - nw_confirm_notification(notification->id); - if (numOfNotifications == 1 || (autoSwitch && !actions_menu_is_displayed())) nw_switch_to_notification(numOfNotifications - 1); else