Set ShowOnSystem correctly for prompts

This commit is contained in:
Daniel
2021-05-18 14:12:03 +02:00
parent 6b83af197f
commit 592605b0d4
2 changed files with 9 additions and 5 deletions

View File

@@ -169,10 +169,11 @@ func createPrompt(ctx context.Context, conn *network.Connection, pkt packet.Pack
// Create new notification.
n = &notifications.Notification{
EventID: nID,
Type: notifications.Prompt,
Title: "Connection Prompt",
Category: "Privacy Filter",
EventID: nID,
Type: notifications.Prompt,
Title: "Connection Prompt",
Category: "Privacy Filter",
ShowOnSystem: askWithSystemNotifications(),
EventData: &promptData{
Entity: entity,
Profile: promptProfile{