feat: add support for Firebase Cloud Messaging

This commit is contained in:
Paul Makles
2023-08-27 15:18:19 +01:00
parent 7568f49755
commit 853366a297
2 changed files with 52 additions and 15 deletions

View File

@@ -2,7 +2,6 @@ use indexmap::{IndexMap, IndexSet};
use iso8601_timestamp::Timestamp;
use revolt_models::v0::{Embed, MessageAuthor, MessageSort, MessageWebhook, PushNotification};
use revolt_result::Result;
use serde_json::json;
use ulid::Ulid;
use crate::{
@@ -268,8 +267,7 @@ impl Message {
_ => vec![],
}
},
json!(PushNotification::from(self.clone().into(), Some(author), &channel.id()).await)
.to_string(),
PushNotification::from(self.clone().into(), Some(author), &channel.id()).await,
)
.await;