Ensure we won't set 'seenautotopicsubpopup' pref when not showing the popup

Change-Id: I20f1672bb40b07672474e81e7e59a440bf1f068b
This commit is contained in:
Bartosz Dziewoński 2021-11-18 15:57:30 +01:00
parent 3265b649cd
commit 0110fe8b8d

View file

@ -317,6 +317,10 @@ function initTopicSubscriptions( $container ) {
}
function maybeShowFirstTimeAutoTopicSubPopup() {
if ( !lastHighlightComment ) {
return;
}
if ( seenAutoTopicSubPopup ) {
return;
}
@ -326,10 +330,6 @@ function maybeShowFirstTimeAutoTopicSubPopup() {
var $popupContent, popup;
if ( !lastHighlightComment ) {
return;
}
function close() {
popup.$element.removeClass( 'ext-discussiontools-autotopicsubpopup-fadein' );
setTimeout( function () {