fix: handle Notification requireInteraction option (#36502)

Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com>
Co-authored-by: Jeremy Spiegel <jeremy.spiegel@frontapp.com>
Co-authored-by: Jeremy Rose <jeremya@chromium.org>
This commit is contained in:
trop[bot]
2023-02-07 19:35:41 +09:00
committed by GitHub
parent 8e7e0dfca1
commit b1e7078bb5

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();