diff --git a/mu4e/mu4e-notification.el b/mu4e/mu4e-notification.el index 1d47742f..bb68b5b1 100644 --- a/mu4e/mu4e-notification.el +++ b/mu4e/mu4e-notification.el @@ -72,6 +72,11 @@ messages changed since the last notification and is greater than zero." (when-let* ((fav (mu4e-bookmark-favorite)) (delta-unread (plist-get fav :delta-unread))) + (when (and (fboundp 'notifications-close-notification) + mu4e--notification-id + (zerop delta-unread)) + (notifications-close-notification mu4e--notification-id) + (setq mu4e--notification-id nil)) (when (and (> delta-unread 0) (not (= delta-unread mu4e--last-delta-unread))) (setq mu4e--last-delta-unread delta-unread) ;; update