diff --git a/Pods b/Pods index c171262c7..eeaffe766 160000 --- a/Pods +++ b/Pods @@ -1 +1 @@ -Subproject commit c171262c7dec75b47e89cde64b6ab2908b200c6b +Subproject commit eeaffe766824af6c6b7e7351da6bddb1e9d99611 diff --git a/Signal/src/ViewControllers/ConversationView/ConversationViewController.m b/Signal/src/ViewControllers/ConversationView/ConversationViewController.m index 2f053f91b..691ee9e4f 100644 --- a/Signal/src/ViewControllers/ConversationView/ConversationViewController.m +++ b/Signal/src/ViewControllers/ConversationView/ConversationViewController.m @@ -88,6 +88,7 @@ #import #import #import +#import @import Photos; diff --git a/SignalServiceKit/src/Contacts/Threads/TSContactThread.h b/SignalServiceKit/src/Contacts/Threads/TSContactThread.h index f68aefd77..d8893913a 100644 --- a/SignalServiceKit/src/Contacts/Threads/TSContactThread.h +++ b/SignalServiceKit/src/Contacts/Threads/TSContactThread.h @@ -3,15 +3,16 @@ // #import "TSThread.h" -#import NS_ASSUME_NONNULL_BEGIN extern NSString *const TSContactThreadPrefix; +typedef NS_ENUM(NSInteger, LKSessionResetStatus); + @interface TSContactThread : TSThread -// Loki: The current session reset state for this thread +// Loki: The current session reset status for this thread @property (atomic) LKSessionResetStatus sessionResetStatus; @property (atomic, readonly) NSArray *sessionRestoreDevices; diff --git a/SignalServiceKit/src/Contacts/Threads/TSContactThread.m b/SignalServiceKit/src/Contacts/Threads/TSContactThread.m index ef8a7889c..54cdef3ee 100644 --- a/SignalServiceKit/src/Contacts/Threads/TSContactThread.m +++ b/SignalServiceKit/src/Contacts/Threads/TSContactThread.m @@ -11,6 +11,7 @@ #import #import #import +#import NS_ASSUME_NONNULL_BEGIN diff --git a/SignalServiceKit/src/Loki/API/LokiFileServerProxy.swift b/SignalServiceKit/src/Loki/API/LokiFileServerProxy.swift index 0982cc492..84c19106b 100644 --- a/SignalServiceKit/src/Loki/API/LokiFileServerProxy.swift +++ b/SignalServiceKit/src/Loki/API/LokiFileServerProxy.swift @@ -49,11 +49,11 @@ internal class LokiFileServerProxy : LokiHTTPClient { var headers = getCanonicalHeaders(for: request) return LokiAPI.getRandomSnode().then { [server = self.server, keyPair = self.keyPair, httpSession = self.httpSession] proxy -> Promise in let url = "\(proxy.address):\(proxy.port)/file_proxy" - print("[Loki] Proxying file server request through \(proxy).") guard let urlAsString = request.url?.absoluteString, let serverURLEndIndex = urlAsString.range(of: server)?.upperBound, serverURLEndIndex < urlAsString.endIndex else { throw Error.endpointParsingFailed } let endpointStartIndex = urlAsString.index(after: serverURLEndIndex) let endpoint = String(urlAsString[endpointStartIndex..