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

Update API scheme on layer 186.

This commit is contained in:
John Preston
2024-08-12 09:58:07 +02:00
parent d34d3a796d
commit 56959398e2
6 changed files with 39 additions and 17 deletions

View File

@@ -89,12 +89,12 @@ struct UnavailableReason {
QString reason;
QString text;
bool operator==(const UnavailableReason &other) const {
return (reason == other.reason) && (text == other.text);
}
bool operator!=(const UnavailableReason &other) const {
return !(*this == other);
}
friend inline bool operator==(
const UnavailableReason &,
const UnavailableReason &) = default;
[[nodiscard]] bool sensitive() const;
[[nodiscard]] static UnavailableReason Sensitive();
};
bool ApplyBotMenuButton(
@@ -340,6 +340,7 @@ public:
// If this string is not empty we must not allow to open the
// conversation and we must show this string instead.
[[nodiscard]] QString computeUnavailableReason() const;
[[nodiscard]] bool isUnavailableSensitive() const;
[[nodiscard]] ClickHandlerPtr createOpenLink();
[[nodiscard]] const ClickHandlerPtr &openLink() {