3131import org .thoughtcrime .securesms .util .Dialogs ;
3232import org .whispersystems .libaxolotl .SessionBuilder ;
3333import org .whispersystems .libaxolotl .protocol .KeyExchangeMessage ;
34- import org .whispersystems .libaxolotl .state .SignedPreKeyStore ;
3534import org .whispersystems .libaxolotl .state .IdentityKeyStore ;
3635import org .whispersystems .libaxolotl .state .PreKeyStore ;
3736import org .whispersystems .libaxolotl .state .SessionRecord ;
3837import org .whispersystems .libaxolotl .state .SessionStore ;
39- import org .whispersystems .textsecure .storage .RecipientDevice ;
38+ import org .whispersystems .libaxolotl .state .SignedPreKeyStore ;
39+ import org .whispersystems .textsecure .push .PushAddress ;
4040import org .whispersystems .textsecure .util .Base64 ;
4141
4242public class KeyExchangeInitiator {
@@ -68,7 +68,7 @@ private static void initiateKeyExchange(Context context, MasterSecret masterSecr
6868
6969 SessionBuilder sessionBuilder = new SessionBuilder (sessionStore , preKeyStore , signedPreKeyStore ,
7070 identityKeyStore , recipient .getRecipientId (),
71- RecipientDevice .DEFAULT_DEVICE_ID );
71+ PushAddress .DEFAULT_DEVICE_ID );
7272
7373 KeyExchangeMessage keyExchangeMessage = sessionBuilder .process ();
7474 String serializedMessage = Base64 .encodeBytesWithoutPadding (keyExchangeMessage .serialize ());
@@ -81,7 +81,7 @@ private static boolean hasInitiatedSession(Context context, MasterSecret masterS
8181 Recipient recipient )
8282 {
8383 SessionStore sessionStore = new TextSecureSessionStore (context , masterSecret );
84- SessionRecord sessionRecord = sessionStore .loadSession (recipient .getRecipientId (), RecipientDevice .DEFAULT_DEVICE_ID );
84+ SessionRecord sessionRecord = sessionStore .loadSession (recipient .getRecipientId (), PushAddress .DEFAULT_DEVICE_ID );
8585
8686 return sessionRecord .getSessionState ().hasPendingKeyExchange ();
8787 }
0 commit comments