mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Provide unavailable reasons for messages.
This commit is contained in:
@@ -95,6 +95,13 @@ struct UnavailableReason {
|
||||
|
||||
[[nodiscard]] bool sensitive() const;
|
||||
[[nodiscard]] static UnavailableReason Sensitive();
|
||||
|
||||
[[nodiscard]] static QString Compute(
|
||||
not_null<Main::Session*> session,
|
||||
const std::vector<UnavailableReason> &list);
|
||||
|
||||
[[nodiscard]] static std::vector<UnavailableReason> Extract(
|
||||
const MTPvector<MTPRestrictionReason> *list);
|
||||
};
|
||||
|
||||
bool ApplyBotMenuButton(
|
||||
|
Reference in New Issue
Block a user