mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 14:26:30 +03:00
api: jsonrpc: add get_push_state to check push notification state (#7356)
This commit is contained in:
@@ -98,7 +98,7 @@ pub mod color;
|
||||
pub mod html;
|
||||
pub mod net;
|
||||
pub mod plaintext;
|
||||
mod push;
|
||||
pub mod push;
|
||||
mod stats;
|
||||
pub use stats::SecurejoinSource;
|
||||
pub use stats::SecurejoinUiPath;
|
||||
|
||||
@@ -170,6 +170,7 @@ pub(crate) struct PushSubscriberState {
|
||||
heartbeat_subscribed: bool,
|
||||
}
|
||||
|
||||
/// Push notification state
|
||||
#[derive(Debug, Default, Clone, Copy, PartialEq, Eq, FromPrimitive, ToPrimitive)]
|
||||
#[repr(i8)]
|
||||
pub enum NotifyState {
|
||||
|
||||
Reference in New Issue
Block a user