mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 22:55:11 +00:00
Removed Ui::showPeerHistoryAtItem from facades.
This commit is contained in:
@@ -50,6 +50,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "boxes/confirm_box.h"
|
||||
#include "mainwidget.h"
|
||||
#include "mainwindow.h"
|
||||
#include "main/main_domain.h"
|
||||
#include "main/main_session.h"
|
||||
#include "main/main_session_settings.h"
|
||||
#include "apiwrap.h"
|
||||
@@ -1136,6 +1137,18 @@ void SessionController::showPeerHistory(
|
||||
msgId);
|
||||
}
|
||||
|
||||
void SessionController::showPeerHistoryAtItem(
|
||||
not_null<const HistoryItem*> item) {
|
||||
_window->invokeForSessionController(
|
||||
&item->history()->peer->session().account(),
|
||||
[=](not_null<SessionController*> controller) {
|
||||
controller->showPeerHistory(
|
||||
item->history()->peer,
|
||||
SectionShow::Way::ClearStack,
|
||||
item->id);
|
||||
});
|
||||
}
|
||||
|
||||
void SessionController::showSection(
|
||||
std::shared_ptr<SectionMemento> memento,
|
||||
const SectionShow ¶ms) {
|
||||
|
Reference in New Issue
Block a user