From 2bf4047410509626a692e4394eff8d3ebae56d67 Mon Sep 17 00:00:00 2001 From: bwang Date: Tue, 13 Jul 2021 10:00:42 -0500 Subject: [PATCH] Hardcode talk alert id to be pt-talk-alert Bug: T285442 Change-Id: I3b46a494682b3b5055f525c0c1219a1710655ce5 --- includes/EchoHooks.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/includes/EchoHooks.php b/includes/EchoHooks.php index 1ec908821..30ac98285 100644 --- a/includes/EchoHooks.php +++ b/includes/EchoHooks.php @@ -1141,6 +1141,8 @@ class EchoHooks implements RecentChange_saveHook { $links['notifications']['talk-alert'] = array_merge( $links['user-menu']['mytalk'], [ + // Hardcode id, which is needed to dismiss the talk alert notification + 'id' => 'pt-talk-alert', 'text' => $skinTemplate->msg( 'echo-new-messages' )->text(), 'class' => [ 'mw-echo-alert' ], ]