2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Add some more shortcuts for Support.

This commit is contained in:
John Preston
2018-11-16 17:36:42 +04:00
parent b3ffbeb63e
commit 479a6d9ad2
13 changed files with 221 additions and 137 deletions

View File

@@ -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();
}