* can assume that if the system enters sleep or hibernation, this will be visible in an obvious way
* for any local user. And once the systems exits sleep or hibernation, the notification would be
* just noise, in particular for auto-suspend. */
- if (is_local &&
- IN_SET(m->scheduled_shutdown_action->handle,
- HANDLE_SUSPEND,
- HANDLE_HIBERNATE,
- HANDLE_HYBRID_SLEEP,
- HANDLE_SUSPEND_THEN_HIBERNATE))
+ if (is_local && HANDLE_ACTION_IS_SLEEP(m->scheduled_shutdown_action->handle))
return false;
return !streq_ptr(p, m->scheduled_shutdown_tty);