public boolean contactSupportsOmemo ( BareJid contact ) throws InterruptedException , PubSubException . NotALeafNodeException , XMPPException . XMPPErrorException , SmackException . NotConnectedException , SmackException . NoResponseException { synchronized ( LOCK ) { OmemoCachedDeviceList deviceList = getOmemoService ( ) . refreshDeviceList ( connection ( ) , getOwnDevice ( ) , contact ) ; return ! deviceList . getActiveDevices ( ) . isEmpty ( ) ; } }
Returns true if the contact has any active devices published in a deviceList .