mirror of
https://github.com/modrinth/code.git
synced 2026-09-05 06:19:11 +00:00
feat(labrinth): instance share notification (#6581)
This commit is contained in:
@@ -73,6 +73,10 @@ pub enum LegacyNotificationBody {
|
||||
invited_by: UserId,
|
||||
role: String,
|
||||
},
|
||||
SharedInstanceInvite {
|
||||
shared_instance_id: String,
|
||||
shared_instance_name: String,
|
||||
},
|
||||
StatusChange {
|
||||
project_id: ProjectId,
|
||||
old_status: ProjectStatus,
|
||||
@@ -177,6 +181,9 @@ impl LegacyNotification {
|
||||
NotificationBody::ServerInvite { .. } => {
|
||||
Some("server_invite".to_string())
|
||||
}
|
||||
NotificationBody::SharedInstanceInvite { .. } => {
|
||||
Some("shared_instance_invite".to_string())
|
||||
}
|
||||
NotificationBody::StatusChange { .. } => {
|
||||
Some("status_change".to_string())
|
||||
}
|
||||
@@ -294,6 +301,13 @@ impl LegacyNotification {
|
||||
invited_by,
|
||||
role,
|
||||
},
|
||||
NotificationBody::SharedInstanceInvite {
|
||||
shared_instance_id,
|
||||
shared_instance_name,
|
||||
} => LegacyNotificationBody::SharedInstanceInvite {
|
||||
shared_instance_id,
|
||||
shared_instance_name,
|
||||
},
|
||||
NotificationBody::StatusChange {
|
||||
project_id,
|
||||
old_status,
|
||||
|
||||
Reference in New Issue
Block a user