@ -148,9 +148,7 @@ public final class MultiDeviceProtocol : NSObject {
@objc ( getAutoGeneratedMultiDeviceFRMessageForHexEncodedPublicKey : in : )
@objc ( getAutoGeneratedMultiDeviceFRMessageForHexEncodedPublicKey : in : )
public static func getAutoGeneratedMultiDeviceFRMessage ( for hexEncodedPublicKey : String , in transaction : YapDatabaseReadWriteTransaction ) -> FriendRequestMessage {
public static func getAutoGeneratedMultiDeviceFRMessage ( for hexEncodedPublicKey : String , in transaction : YapDatabaseReadWriteTransaction ) -> FriendRequestMessage {
let thread = TSContactThread . getOrCreateThread ( withContactId : hexEncodedPublicKey , transaction : transaction )
let thread = TSContactThread . getOrCreateThread ( withContactId : hexEncodedPublicKey , transaction : transaction )
let result = FriendRequestMessage ( timestamp : NSDate . ows_millisecondTimeStamp ( ) , thread : thread , body : " Please accept to enable messages to be synced across devices " )
return FriendRequestMessage ( timestamp : NSDate . ows_millisecondTimeStamp ( ) , thread : thread , body : " Please accept to enable messages to be synced across devices " )
result . skipSave = true // TODO: W h y i s t h i s n e c e s s a r y a g a i n ?
return result
}
}
// / S e e [ A u t o - G e n e r a t e d F r i e n d R e q u e s t s ] ( h t t p s : / / g i t h u b . c o m / l o k i - p r o j e c t / s e s s i o n - p r o t o c o l - d o c s / w i k i / A u t o - G e n e r a t e d - F r i e n d - R e q u e s t s ) f o r m o r e i n f o r m a t i o n .
// / S e e [ A u t o - G e n e r a t e d F r i e n d R e q u e s t s ] ( h t t p s : / / g i t h u b . c o m / l o k i - p r o j e c t / s e s s i o n - p r o t o c o l - d o c s / w i k i / A u t o - G e n e r a t e d - F r i e n d - R e q u e s t s ) f o r m o r e i n f o r m a t i o n .