Skip to content

Commit d6309de

Browse files
committed
Notifications for bot messages count should not influence order
1 parent 275440a commit d6309de

3 files changed

Lines changed: 18 additions & 3 deletions

File tree

lhc_web/design/defaulttheme/js/svelte/public/build/main.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lhc_web/design/defaulttheme/js/svelte/public/build/main.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lhc_web/design/defaulttheme/js/svelte/src/LHC.svelte

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1706,7 +1706,22 @@
17061706
chatsToNotify.push(itemList.id + '__' + iconsMonitoring.join('__'));
17071707
}
17081708
}
1709-
} else if (lhcLogic.isListLoaded == true && (chatsSkipped == 0 || itemList.status_sub_sub === 2) && (($lhcList.statusNotifications[item.last_id_identifier].indexOf(identifierElement) == -1 && (userId == 0 || item.last_id_identifier == 'amails') && confLH.ownntfonly == 0) || ($lhcList.statusNotifications[item.last_id_identifier].indexOf(identifierElement) == -1 && userId == confLH.user_id)) ) {
1709+
} else if (
1710+
lhcLogic.isListLoaded == true &&
1711+
(item.last_id_identifier == 'bot_chats' || chatsSkipped == 0 || itemList.status_sub_sub === 2) &&
1712+
(
1713+
(
1714+
$lhcList.statusNotifications[item.last_id_identifier].indexOf(identifierElement) == -1 &&
1715+
(userId == 0 || item.last_id_identifier == 'amails') &&
1716+
confLH.ownntfonly == 0
1717+
)
1718+
||
1719+
(
1720+
$lhcList.statusNotifications[item.last_id_identifier].indexOf(identifierElement) == -1 &&
1721+
userId == confLH.user_id
1722+
)
1723+
)
1724+
) {
17101725
if (lhinst.chatsSynchronising.indexOf(parseInt(itemList.id)) === -1) { // Don't show notification if chat is under sync already
17111726
chatsToNotify.push(itemList.id);
17121727
}

0 commit comments

Comments
 (0)