fix: handle Notification requireInteraction option (#36477)

This commit is contained in:
Jeremy Spiegel 2022-11-30 13:18:35 -08:00 committed by GitHub
parent f527b8aa2a
commit 665cf03f74
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,6 +35,9 @@ void OnWebNotificationAllowed(base::WeakPtr<Notification> notification,
options.icon = icon;
options.silent = audio_muted ? true : data.silent;
options.has_reply = false;
if (data.require_interaction)
options.timeout_type = u"never";
notification->Show(options);
} else {
notification->Destroy();