Cotton code
14 lines · 560 B · RustRaw
//! `push.forget` — this device's APNs token, which no server takes: the Mac//! that held the notification rail is retired, so a forget has nothing to//! forget.use serde_json::{json, Value};use crate::handle::CottonHandle;use crate::methods::MethodError;/// `push.forget` — answers and never refuses: a person handing back a phone/// is never trapped by a deregistration.pub fn forget(_handle: &CottonHandle, _request: &Value) -> Result<Value, MethodError> {    Ok(json!({ "forgotten": false, "reason": super::database_calls::NOT_SERVED }))}