mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Add some more shortcuts for Support.
This commit is contained in:
@@ -1807,7 +1807,9 @@ void MainWidget::ui_showPeerHistory(
|
||||
if (!_dialogs->isHidden()) {
|
||||
if (!back) {
|
||||
if (const auto history = _history->history()) {
|
||||
_dialogs->scrollToPeer(history, showAtMsgId);
|
||||
_dialogs->scrollToEntry(Dialogs::RowDescriptor(
|
||||
history,
|
||||
FullMsgId(history->channelId(), showAtMsgId)));
|
||||
}
|
||||
}
|
||||
_dialogs->update();
|
||||
@@ -1820,22 +1822,6 @@ PeerData *MainWidget::ui_getPeerForMouseAction() {
|
||||
return _history->ui_getPeerForMouseAction();
|
||||
}
|
||||
|
||||
Dialogs::RowDescriptor MainWidget::chatListEntryBefore(
|
||||
const Dialogs::RowDescriptor &which) const {
|
||||
if (selectingPeer()) {
|
||||
return Dialogs::RowDescriptor();
|
||||
}
|
||||
return _dialogs->chatListEntryBefore(which);
|
||||
}
|
||||
|
||||
Dialogs::RowDescriptor MainWidget::chatListEntryAfter(
|
||||
const Dialogs::RowDescriptor &which) const {
|
||||
if (selectingPeer()) {
|
||||
return Dialogs::RowDescriptor();
|
||||
}
|
||||
return _dialogs->chatListEntryAfter(which);
|
||||
}
|
||||
|
||||
PeerData *MainWidget::peer() {
|
||||
return _history->peer();
|
||||
}
|
||||
|
Reference in New Issue
Block a user