Hide links in chats with Report Spam.

This commit is contained in:
John Preston
2025-10-01 21:50:09 +04:00
parent 16ec935feb
commit 8779ac3ec3
9 changed files with 89 additions and 5 deletions
@@ -184,6 +184,7 @@ public:
[[nodiscard]] UserData *viaBot() const;
[[nodiscard]] UserData *getMessageBot() const;
[[nodiscard]] bool hideLinks() const;
[[nodiscard]] bool isHistoryEntry() const;
[[nodiscard]] bool isAdminLogEntry() const;
[[nodiscard]] bool isFromScheduled() const;
@@ -419,6 +420,9 @@ public:
void incrementReplyToTopCounter();
void applyEffectWatchedOnUnreadKnown();
void setHasHiddenLinks(bool has) const;
[[nodiscard]] bool hasHiddenLinks() const;
[[nodiscard]] bool emptyText() const {
return _text.empty();
}