2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +00:00

Handle nice topic / post-in-topic links.

This commit is contained in:
John Preston
2022-10-28 16:30:59 +04:00
parent 3078a94404
commit 18bf5c0ee2
17 changed files with 206 additions and 142 deletions

View File

@@ -512,7 +512,7 @@ void MainWidget::floatPlayerClosed(FullMsgId itemId) {
void MainWidget::floatPlayerDoubleClickEvent(
not_null<const HistoryItem*> item) {
_controller->showPeerHistoryAtItem(item);
_controller->showMessage(item);
}
bool MainWidget::setForwardDraft(PeerId peerId, Data::ForwardDraft &&draft) {
@@ -874,7 +874,7 @@ void MainWidget::createPlayer() {
_player->entity()->setCloseCallback([=] { closeBothPlayers(); });
_player->entity()->setShowItemCallback([=](
not_null<const HistoryItem*> item) {
_controller->showPeerHistoryAtItem(item);
_controller->showMessage(item);
});
_player->entity()->togglePlaylistRequests(