2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Allow disabling pinned messages notifications.

Fixes #1864.
This commit is contained in:
John Preston
2019-05-28 16:53:36 +02:00
parent e0d4884351
commit af85aec33b
6 changed files with 49 additions and 3 deletions

View File

@@ -192,6 +192,10 @@ public:
bool archiveCollapsed() const;
rpl::producer<bool> archiveCollapsedChanges() const;
void setNotifyAboutPinned(bool notify);
bool notifyAboutPinned() const;
rpl::producer<bool> notifyAboutPinnedChanges() const;
bool hadLegacyCallsPeerToPeerNobody() const {
return _variables.hadLegacyCallsPeerToPeerNobody;
}
@@ -245,6 +249,7 @@ private:
bool exeLaunchWarning = true;
Data::AutoDownload::Full autoDownload;
rpl::variable<bool> archiveCollapsed = false;
rpl::variable<bool> notifyAboutPinned = true;
static constexpr auto kDefaultSupportChatsLimitSlice
= 7 * 24 * 60 * 60;