private void sendRatchetUpdate ( OmemoManager . LoggedInOmemoManager managerGuard , OmemoDevice contactsDevice ) throws CorruptedOmemoKeyException , InterruptedException , SmackException . NoResponseException , NoSuchAlgorithmException , SmackException . NotConnectedException , CryptoFailedException , CannotEstablishOmemoSessionException { OmemoManager manager = managerGuard . get ( ) ; OmemoElement ratchetUpdate = createRatchetUpdateElement ( managerGuard , contactsDevice ) ; Message m = new Message ( ) ; m . setTo ( contactsDevice . getJid ( ) ) ; m . addExtension ( ratchetUpdate ) ; manager . getConnection ( ) . sendStanza ( m ) ; }
Send an empty OMEMO message to contactsDevice in order to forward the ratchet .