Return pending TMs, fix notifs serde (#575)

* Return pending TMs, fix notifs serde

* fix compile
This commit is contained in:
Geometrically
2023-04-18 14:16:41 -07:00
committed by GitHub
parent a560f6e9f6
commit bb80505b76
2 changed files with 9 additions and 3 deletions

View File

@@ -18,12 +18,12 @@ pub struct NotificationId(pub u64);
pub struct Notification {
pub id: NotificationId,
pub user_id: UserId,
#[serde(rename = "type")]
pub read: bool,
pub created: DateTime<Utc>,
pub body: NotificationBody,
// DEPRECATED: use body field instead
#[serde(rename = "type")]
pub type_: Option<String>,
pub title: String,
pub text: String,