[qmf-notification-plugin] Improve notifications logic