Version 4.9.1: Allow highlighting client side messages.

This commit is contained in:
John Preston 2023-08-15 20:04:03 +02:00
parent b871a29275
commit bc523c2685
1 changed files with 2 additions and 0 deletions

View File

@ -2014,6 +2014,7 @@ void HistoryWidget::showHistory(
return;
}
if (!IsServerMsgId(showAtMsgId)
&& !IsClientMsgId(showAtMsgId)
&& !IsServerMsgId(-showAtMsgId)) {
// To end or to unread.
destroyUnreadBar();
@ -5613,6 +5614,7 @@ int HistoryWidget::countInitialScrollTop() {
return _list->historyScrollTop();
} else if (_showAtMsgId
&& (IsServerMsgId(_showAtMsgId)
|| IsClientMsgId(_showAtMsgId)
|| IsServerMsgId(-_showAtMsgId))) {
const auto item = getItemFromHistoryOrMigrated(_showAtMsgId);
const auto itemTop = _list->itemTop(item);