Skip to content

Commit

Permalink
Update src/server.rs
Browse files Browse the repository at this point in the history
Co-authored-by: bjoern <r10s@b44t.com>
  • Loading branch information
link2xt and r10s authored Mar 2, 2024
1 parent 1367a96 commit 6862166
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ async fn notify_device(mut req: tide::Request<State>) -> tide::Result<tide::Resp
let db = req.state().db();
let payload = DefaultNotificationBuilder::new()
.set_title("New messages")
.set_title_loc_key("newmessage") // Localization key for the title.
.set_body("You could have new messages")
.set_loc_key("newmessagebody") // Localization key for the body.
.set_title_loc_key("new_messages") // Localization key for the title.
.set_body("You have new messages")
.set_loc_key("new_messages_body") // Localization key for the body.
.set_mutable_content()
.build(
device_token,
Expand Down

0 comments on commit 6862166

Please sign in to comment.