pull/941/head
Ryan Zhao 11 months ago
parent c293bbca3a
commit acbf6fb126

@ -66,7 +66,7 @@
<key>NSIncludesSubdomains</key> <key>NSIncludesSubdomains</key>
<true/> <true/>
<key>NSExceptionRequiresForwardSecrecy</key> <key>NSExceptionRequiresForwardSecrecy</key>
<true/> <false/>
</dict> </dict>
<key>seed2.getsession.org</key> <key>seed2.getsession.org</key>
<dict> <dict>

@ -1,11 +1,6 @@
// //
// Copyright (c) 2019 Open Whisper Systems. All rights reserved. // Copyright (c) 2019 Open Whisper Systems. All rights reserved.
// //
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <SessionUIKit/SessionUIKit.h>
// Separate iOS Frameworks from other imports. // Separate iOS Frameworks from other imports.
#import "OWSAudioPlayer.h" #import "OWSAudioPlayer.h"
#import "OWSBezierPathView.h" #import "OWSBezierPathView.h"

@ -182,7 +182,7 @@ extension MessageReceiver {
lastChangeTimestampMs: protoLastChangeTimestampMs lastChangeTimestampMs: protoLastChangeTimestampMs
) )
let updateControlMewssage: () throws -> () = { let updateControlMessage: () throws -> () = {
guard message is ExpirationTimerUpdate else { return } guard message is ExpirationTimerUpdate else { return }
_ = try Interaction _ = try Interaction
@ -215,7 +215,7 @@ extension MessageReceiver {
guard protoLastChangeTimestampMs >= localLastChangeTimestampMs else { guard protoLastChangeTimestampMs >= localLastChangeTimestampMs else {
if (protoLastChangeTimestampMs + Int64(localConfig.durationSeconds * 1000)) > localLastChangeTimestampMs { if (protoLastChangeTimestampMs + Int64(localConfig.durationSeconds * 1000)) > localLastChangeTimestampMs {
try updateControlMewssage() try updateControlMessage()
} }
return return
} }
@ -245,6 +245,6 @@ extension MessageReceiver {
} }
} }
try updateControlMewssage() try updateControlMessage()
} }
} }

Loading…
Cancel
Save