2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-03 16:05:57 +00:00

Show "View as Messages" preview by Alt+Click.

This commit is contained in:
John Preston
2024-05-31 14:39:35 +04:00
parent ad342a5324
commit 4e8895ddd9
9 changed files with 80 additions and 29 deletions

View File

@@ -2978,16 +2978,22 @@ QString SessionController::premiumRef() const {
bool SessionController::showChatPreview(
Dialogs::RowDescriptor row,
Fn<void(bool shown)> callback) {
return _chatPreviewManager->show(std::move(row), std::move(callback));
Fn<void(bool shown)> callback,
QPointer<QWidget> parentOverride) {
return _chatPreviewManager->show(
std::move(row),
std::move(callback),
std::move(parentOverride));
}
bool SessionController::scheduleChatPreview(
Dialogs::RowDescriptor row,
Fn<void(bool shown)> callback) {
Fn<void(bool shown)> callback,
QPointer<QWidget> parentOverride) {
return _chatPreviewManager->schedule(
std::move(row),
std::move(callback));
std::move(callback),
std::move(parentOverride));
}
void SessionController::cancelScheduledPreview() {