2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 14:38:15 +00:00

Implement report spam from ContactStatus bar.

This commit is contained in:
John Preston
2019-06-10 16:58:45 +02:00
parent f49c7ba7ee
commit 213a8d888a
8 changed files with 121 additions and 106 deletions

View File

@@ -42,6 +42,16 @@ public:
void showSettings();
template <typename BoxType>
QPointer<BoxType> show(
object_ptr<BoxType> content,
LayerOptions options = LayerOption::KeepOther,
anim::type animated = anim::type::normal) {
const auto result = QPointer<BoxType>(content.data());
showBox(std::move(content), options, animated);
return result;
}
void activate();
void reActivate();
void updateIsActive(int timeout);
@@ -53,6 +63,11 @@ public:
void tempDirDelete(int task);
private:
void showBox(
object_ptr<BoxContent> content,
LayerOptions options,
anim::type animated);
not_null<Main::Account*> _account;
::MainWindow _widget;
std::unique_ptr<SessionController> _sessionController;