2020-03-13 11:07:27 +00:00
|
|
|
/*
|
|
|
|
This file is part of Telegram Desktop,
|
|
|
|
the official desktop application for the Telegram messaging service.
|
|
|
|
|
|
|
|
For license and copyright information please follow this link:
|
|
|
|
https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
|
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
|
2020-03-25 12:04:06 +00:00
|
|
|
#include "ui/layers/generic_box.h"
|
2020-03-13 11:07:27 +00:00
|
|
|
|
|
|
|
namespace Window {
|
|
|
|
class SessionController;
|
|
|
|
} // namespace Window
|
|
|
|
|
|
|
|
namespace Data {
|
|
|
|
class ChatFilter;
|
|
|
|
} // namespace Data
|
|
|
|
|
|
|
|
void EditFilterBox(
|
|
|
|
not_null<Ui::GenericBox*> box,
|
|
|
|
not_null<Window::SessionController*> window,
|
|
|
|
const Data::ChatFilter &filter,
|
2023-03-21 16:27:16 +00:00
|
|
|
Fn<void(const Data::ChatFilter &)> doneCallback,
|
|
|
|
Fn<void(const Data::ChatFilter &, Fn<void(Data::ChatFilter)>)> saveAnd);
|
2020-03-25 12:04:06 +00:00
|
|
|
|
|
|
|
void EditExistingFilter(
|
|
|
|
not_null<Window::SessionController*> window,
|
|
|
|
FilterId id);
|