Hardcode talk alert id to be pt-talk-alert

Bug: T285442
Change-Id: I3b46a494682b3b5055f525c0c1219a1710655ce5
This commit is contained in:
bwang 2021-07-13 10:00:42 -05:00
parent 98d7428837
commit 2bf4047410

View file

@ -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' ],
]