mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Go through open history in support mode.
This commit is contained in:
@@ -2921,25 +2921,12 @@ Dialogs::RowDescriptor DialogsInner::computeJump(
|
||||
return result;
|
||||
}
|
||||
|
||||
bool DialogsInner::jumpToDialogRow(const Dialogs::RowDescriptor &to) {
|
||||
bool DialogsInner::jumpToDialogRow(Dialogs::RowDescriptor to) {
|
||||
if (to == chatListEntryLast()) {
|
||||
_listBottomReached.fire({});
|
||||
}
|
||||
|
||||
if (const auto history = to.key.history()) {
|
||||
Ui::showPeerHistory(
|
||||
history,
|
||||
(uniqueSearchResults()
|
||||
? ShowAtUnreadMsgId
|
||||
: to.fullId.msg));
|
||||
return true;
|
||||
} else if (const auto feed = to.key.feed()) {
|
||||
if (const auto item = App::histItemById(to.fullId)) {
|
||||
_controller->showSection(
|
||||
HistoryFeed::Memento(feed, item->position()));
|
||||
} else {
|
||||
_controller->showSection(HistoryFeed::Memento(feed));
|
||||
}
|
||||
if (uniqueSearchResults()) {
|
||||
to.fullId = FullMsgId();
|
||||
}
|
||||
return false;
|
||||
return _controller->jumpToChatListEntry(to);
|
||||
}
|
||||
|
Reference in New Issue
Block a user