Disable web sockets.

This commit is contained in:
Mikunj 2019-05-07 11:19:12 +10:00
parent 18d1225faa
commit cb53acf138

View file

@ -909,6 +909,9 @@ NSString *const kNSNotification_OWSWebSocketStateDidChange = @"kNSNotification_O
- (BOOL)shouldSocketBeOpen
{
OWSAssertIsOnMainThread();
// Loki: Since we don't use websockets, disable them.
return NO;
// Don't open socket in app extensions.
if (!CurrentAppContext().isMainApp) {