mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-07 07:33:52 +02:00
Version 4.9.1: Allow highlighting client side messages.
This commit is contained in:
parent
b871a29275
commit
bc523c2685
1 changed files with 2 additions and 0 deletions
|
@ -2014,6 +2014,7 @@ void HistoryWidget::showHistory(
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!IsServerMsgId(showAtMsgId)
|
if (!IsServerMsgId(showAtMsgId)
|
||||||
|
&& !IsClientMsgId(showAtMsgId)
|
||||||
&& !IsServerMsgId(-showAtMsgId)) {
|
&& !IsServerMsgId(-showAtMsgId)) {
|
||||||
// To end or to unread.
|
// To end or to unread.
|
||||||
destroyUnreadBar();
|
destroyUnreadBar();
|
||||||
|
@ -5613,6 +5614,7 @@ int HistoryWidget::countInitialScrollTop() {
|
||||||
return _list->historyScrollTop();
|
return _list->historyScrollTop();
|
||||||
} else if (_showAtMsgId
|
} else if (_showAtMsgId
|
||||||
&& (IsServerMsgId(_showAtMsgId)
|
&& (IsServerMsgId(_showAtMsgId)
|
||||||
|
|| IsClientMsgId(_showAtMsgId)
|
||||||
|| IsServerMsgId(-_showAtMsgId))) {
|
|| IsServerMsgId(-_showAtMsgId))) {
|
||||||
const auto item = getItemFromHistoryOrMigrated(_showAtMsgId);
|
const auto item = getItemFromHistoryOrMigrated(_showAtMsgId);
|
||||||
const auto itemTop = _list->itemTop(item);
|
const auto itemTop = _list->itemTop(item);
|
||||||
|
|
Loading…
Add table
Reference in a new issue