mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Added sub-button to top of sponsored messages that can be reported.
This commit is contained in:
@@ -324,4 +324,10 @@ void ShowSponsored(
|
||||
menu->popup(QCursor::pos());
|
||||
}
|
||||
|
||||
void ShowSponsoredAbout(std::shared_ptr<ChatHelpers::Show> show) {
|
||||
show->showBox(Box([=](not_null<Ui::GenericBox*> box) {
|
||||
AboutBox(box, &show->session());
|
||||
}));
|
||||
}
|
||||
|
||||
} // namespace Menu
|
||||
|
@@ -24,4 +24,6 @@ void ShowSponsored(
|
||||
std::shared_ptr<ChatHelpers::Show> show,
|
||||
not_null<HistoryItem*> item);
|
||||
|
||||
void ShowSponsoredAbout(std::shared_ptr<ChatHelpers::Show> show);
|
||||
|
||||
} // namespace Menu
|
||||
|
Reference in New Issue
Block a user