Skip to content

Commit

Permalink
Fixed sometimes blank list notifications with image sending enabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
matejdro committed Nov 23, 2016
1 parent 02e7f2f commit 9ac7fcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NotificationsWindow/Comm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++)
Expand All @@ -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
Expand Down

0 comments on commit 9ac7fcf

Please sign in to comment.