2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

showPeerHistory moved to Ui namespace

This commit is contained in:
John Preston
2015-12-13 14:36:08 +03:00
parent 6ec61d4ad6
commit f6fec9a619
15 changed files with 75 additions and 71 deletions

View File

@@ -687,7 +687,7 @@ void DialogsInner::onContextDeleteAndLeaveSure() {
if (!_menuActionPeer) return;
Ui::hideLayer();
App::main()->showDialogs();
Ui::showChatsList();
if (_menuActionPeer->isUser()) {
App::main()->deleteConversation(_menuActionPeer);
} else if (_menuActionPeer->isChat()) {
@@ -2553,7 +2553,7 @@ bool DialogsWidget::onCancelSearch() {
}
if (_searchInPeer && !clearing) {
if (!cWideMode()) {
App::main()->showPeerHistory(_searchInPeer->id, ShowAtUnreadMsgId);
Ui::showPeerHistory(_searchInPeer, ShowAtUnreadMsgId);
}
_searchInPeer = _searchInMigrated = 0;
_inner.searchInPeer(0);
@@ -2573,7 +2573,7 @@ void DialogsWidget::onCancelSearchInPeer() {
}
if (_searchInPeer) {
if (!cWideMode() && !App::main()->selectingPeer()) {
App::main()->showPeerHistory(_searchInPeer->id, ShowAtUnreadMsgId);
Ui::showPeerHistory(_searchInPeer, ShowAtUnreadMsgId);
}
_searchInPeer = _searchInMigrated = 0;
_inner.searchInPeer(0);