From 5e9695d234460de2821b128622c19fd0016910ea Mon Sep 17 00:00:00 2001 From: Ryan Zhao Date: Thu, 16 Dec 2021 16:22:44 +1100 Subject: [PATCH] disable typing indicators and read receipts by default --- Session/Meta/AppDelegate.m | 3 --- .../Typing Indicators/TypingIndicators.swift | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/Session/Meta/AppDelegate.m b/Session/Meta/AppDelegate.m index cc8ffc692..000af7460 100644 --- a/Session/Meta/AppDelegate.m +++ b/Session/Meta/AppDelegate.m @@ -531,9 +531,6 @@ static NSTimeInterval launchStartedAt; // enables this feature [self.disappearingMessagesJob startIfNecessary]; - // For non-legacy users, read receipts are on by default. - [self.readReceiptManager setAreReadReceiptsEnabled:YES]; - [self startPollerIfNeeded]; [self startClosedGroupPoller]; [self startOpenGroupPollersIfNeeded]; diff --git a/SessionMessagingKit/Sending & Receiving/Typing Indicators/TypingIndicators.swift b/SessionMessagingKit/Sending & Receiving/Typing Indicators/TypingIndicators.swift index fe2bd3d1b..2639466db 100644 --- a/SessionMessagingKit/Sending & Receiving/Typing Indicators/TypingIndicators.swift +++ b/SessionMessagingKit/Sending & Receiving/Typing Indicators/TypingIndicators.swift @@ -63,7 +63,7 @@ public class TypingIndicatorsImpl : NSObject, TypingIndicators { } private func setup() { - _areTypingIndicatorsEnabled = OWSPrimaryStorage.shared().dbReadConnection.bool(forKey: kDatabaseKey_TypingIndicatorsEnabled, inCollection: kDatabaseCollection, defaultValue: true) + _areTypingIndicatorsEnabled = OWSPrimaryStorage.shared().dbReadConnection.bool(forKey: kDatabaseKey_TypingIndicatorsEnabled, inCollection: kDatabaseCollection, defaultValue: false) } // MARK: -