2020-08-17 12:29: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
|
|
|
|
|
2023-05-02 09:33:19 +00:00
|
|
|
namespace ChatHelpers {
|
|
|
|
class Show;
|
|
|
|
} // namespace ChatHelpers
|
2022-05-09 13:09:46 +00:00
|
|
|
|
2020-08-17 12:29:27 +00:00
|
|
|
namespace Api {
|
|
|
|
|
|
|
|
void ToggleFavedSticker(
|
2023-05-02 09:33:19 +00:00
|
|
|
std::shared_ptr<ChatHelpers::Show> show,
|
2020-08-17 12:29:27 +00:00
|
|
|
not_null<DocumentData*> document,
|
|
|
|
Data::FileOrigin origin);
|
|
|
|
|
|
|
|
void ToggleFavedSticker(
|
2023-05-02 09:33:19 +00:00
|
|
|
std::shared_ptr<ChatHelpers::Show> show,
|
2020-08-17 12:29:27 +00:00
|
|
|
not_null<DocumentData*> document,
|
|
|
|
Data::FileOrigin origin,
|
|
|
|
bool faved);
|
|
|
|
|
2020-08-19 14:04:05 +00:00
|
|
|
void ToggleRecentSticker(
|
|
|
|
not_null<DocumentData*> document,
|
|
|
|
Data::FileOrigin origin,
|
|
|
|
bool saved);
|
|
|
|
|
2020-08-17 12:29:27 +00:00
|
|
|
void ToggleSavedGif(
|
2023-05-02 09:33:19 +00:00
|
|
|
std::shared_ptr<ChatHelpers::Show> show,
|
2020-08-17 12:29:27 +00:00
|
|
|
not_null<DocumentData*> document,
|
|
|
|
Data::FileOrigin origin,
|
|
|
|
bool saved);
|
|
|
|
|
2022-04-07 14:57:07 +00:00
|
|
|
void ToggleSavedRingtone(
|
|
|
|
not_null<DocumentData*> document,
|
|
|
|
Data::FileOrigin origin,
|
|
|
|
Fn<void()> &&done,
|
|
|
|
bool saved);
|
|
|
|
|
2020-08-17 12:29:27 +00:00
|
|
|
} // namespace Api
|