Version 4.9.1: Allow highlighting client side messages.
This commit is contained in:
parent
b871a29275
commit
bc523c2685
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue