OmemoCachedDeviceList refreshDeviceList ( XMPPConnection connection , OmemoDevice userDevice , BareJid contact ) throws InterruptedException , PubSubException . NotALeafNodeException , XMPPException . XMPPErrorException , SmackException . NotConnectedException , SmackException . NoResponseException { // refreshOmemoDeviceList; OmemoDeviceListElement publishedList ; try { publishedList = fetchDeviceList ( connection , contact ) ; } catch ( PubSubException . NotAPubSubNodeException e ) { LOGGER . log ( Level . WARNING , "Error refreshing deviceList: " , e ) ; publishedList = null ; } if ( publishedList == null ) { publishedList = new OmemoDeviceListElement_VAxolotl ( Collections . < Integer > emptySet ( ) ) ; } return getOmemoStoreBackend ( ) . mergeCachedDeviceList ( userDevice , contact , publishedList ) ; }
Refresh and merge device list of contact .