|
|
@ -173,10 +173,7 @@ public final class SyncMessagesProtocol : NSObject {
|
|
|
|
switch friendRequestStatus {
|
|
|
|
switch friendRequestStatus {
|
|
|
|
case .none, .requestExpired:
|
|
|
|
case .none, .requestExpired:
|
|
|
|
let messageSender = SSKEnvironment.shared.messageSender
|
|
|
|
let messageSender = SSKEnvironment.shared.messageSender
|
|
|
|
// TODO: Does the function below need to handle multi device??
|
|
|
|
// We need to send the FR message to all of the users device as the contact sync message excludes slave devices
|
|
|
|
// We need to send a FR message here directly to the user. Multi device doesn't come into play.
|
|
|
|
|
|
|
|
// TODO: Say A1 has a conversation with B1 and B2. A2 is now linked to A1. We'd want A2 to establish
|
|
|
|
|
|
|
|
// sessions with both B1 and B2, right?
|
|
|
|
|
|
|
|
let autoGeneratedFRMessage = MultiDeviceProtocol.getAutoGeneratedMultiDeviceFRMessage(for: hexEncodedPublicKey, in: transaction)
|
|
|
|
let autoGeneratedFRMessage = MultiDeviceProtocol.getAutoGeneratedMultiDeviceFRMessage(for: hexEncodedPublicKey, in: transaction)
|
|
|
|
thread.isForceHidden = true
|
|
|
|
thread.isForceHidden = true
|
|
|
|
thread.save(with: transaction)
|
|
|
|
thread.save(with: transaction)
|
|
|
|