mirror of
https://github.com/modrinth/code.git
synced 2026-09-02 13:05:50 +00:00
Merge branch 'main' into truman/project-download-modal
This commit is contained in:
@@ -130,7 +130,8 @@ pub async fn ws_init(
|
|||||||
)?)
|
)?)
|
||||||
.await;
|
.await;
|
||||||
|
|
||||||
let unread_server_invites = DBNotification::get_many_user_exposed_on_site(
|
let unread_launcher_invites =
|
||||||
|
DBNotification::get_many_user_exposed_on_site(
|
||||||
user_id.into(),
|
user_id.into(),
|
||||||
&**pool,
|
&**pool,
|
||||||
&redis,
|
&redis,
|
||||||
@@ -142,11 +143,12 @@ pub async fn ws_init(
|
|||||||
&& matches!(
|
&& matches!(
|
||||||
¬ification.body,
|
¬ification.body,
|
||||||
NotificationBody::ServerInvite { .. }
|
NotificationBody::ServerInvite { .. }
|
||||||
|
| NotificationBody::SharedInstanceInvite { .. }
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
.map(Notification::from);
|
.map(Notification::from);
|
||||||
|
|
||||||
for notification in unread_server_invites {
|
for notification in unread_launcher_invites {
|
||||||
let _ = session.text(serde_json::to_string(¬ification)?).await;
|
let _ = session.text(serde_json::to_string(¬ification)?).await;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user