Added support to show incoming notifications based on settings
[modest] / src / hildon2 / modest-platform.c
index 07ccda7..6ded19b 100644 (file)
@@ -1594,6 +1594,10 @@ void
 modest_platform_on_new_headers_received (GList *URI_list,
                                         gboolean show_visual)
 {
+       /* Check if the user wants to show notifications or not */
+       if (!modest_conf_get_bool (modest_runtime_get_conf (), MODEST_CONF_NOTIFICATIONS, NULL))
+               return;
+
        if (g_list_length (URI_list) == 0)
                return;