pub use crate::config::NotificationPreview;
#[derive(Default)]
pub struct NotificationState {
pub pending_bell: bool,
pub notify_direct: bool,
pub notify_group: bool,
pub desktop_notifications: bool,
pub notification_preview: NotificationPreview,
pub clipboard_clear_seconds: u64,
pub clipboard_set_at: Option<std::time::Instant>,
}
impl NotificationState {
pub fn new() -> Self {
Self {
notify_direct: true,
notify_group: true,
notification_preview: NotificationPreview::Full,
clipboard_clear_seconds: 30,
..Default::default()
}
}
}