2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Show comments button using 'has_link' flag.

This commit is contained in:
John Preston
2020-09-10 14:56:46 +03:00
parent 01ab6e6d4d
commit 47170da813
4 changed files with 29 additions and 22 deletions

View File

@@ -312,6 +312,7 @@ public:
void setLinkedChat(ChannelData *linked);
[[nodiscard]] ChannelData *linkedChat() const;
[[nodiscard]] bool linkedChatKnown() const;
void ptsInit(int32 pts) {
_ptsWaiter.init(pts);
@@ -436,7 +437,7 @@ private:
std::vector<Data::UnavailableReason> _unavailableReasons;
std::unique_ptr<InvitePeek> _invitePeek;
QString _inviteLink;
ChannelData *_linkedChat = nullptr;
std::optional<ChannelData*> _linkedChat;
int _slowmodeSeconds = 0;
TimeId _slowmodeLastMessage = 0;