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

Removed Ui::showPeerHistoryAtItem from facades.

This commit is contained in:
23rd
2021-06-16 02:06:22 +03:00
committed by John Preston
parent 570ed5691d
commit 7924979dfb
19 changed files with 106 additions and 28 deletions

View File

@@ -511,6 +511,11 @@ void MainWidget::floatPlayerClosed(FullMsgId itemId) {
}
}
void MainWidget::floatPlayerDoubleClickEvent(
not_null<const HistoryItem*> item) {
_controller->showPeerHistoryAtItem(item);
}
bool MainWidget::setForwardDraft(PeerId peerId, MessageIdsList &&items) {
Expects(peerId != 0);
@@ -939,6 +944,10 @@ void MainWidget::createPlayer() {
[this] { playerHeightUpdated(); },
_player->lifetime());
_player->entity()->setCloseCallback([=] { closeBothPlayers(); });
_player->entity()->setShowItemCallback([=](
not_null<const HistoryItem*> item) {
_controller->showPeerHistoryAtItem(item);
});
_playerVolume.create(this, _controller);
_player->entity()->volumeWidgetCreated(_playerVolume);
orderWidgets();