NotificationContentFcm {
collapse_key: "new_reply",
title: format!("{} @ {}", self.post.username, self.post.discussion_name),
body: text,
data: Some(json!({
"type": "reply",
"discussion_id": self.post.discussion_id,
"post_id": self.post.id,
})),
}
NotificationContentFcm {
collapse_key: "new_mail",
title: self.mail.username.to_string(),
body: text,
data: Some(json!({
"type": "new_mail",
})),
}