static void publishDeviceList ( XMPPConnection connection , OmemoDeviceListElement deviceList ) throws InterruptedException , XMPPException . XMPPErrorException , SmackException . NotConnectedException , SmackException . NoResponseException { PubSubManager . getInstanceFor ( connection , connection . getUser ( ) . asBareJid ( ) ) . tryToPublishAndPossibleAutoCreate ( OmemoConstants . PEP_NODE_DEVICE_LIST , new PayloadItem <> ( deviceList ) ) ; }
Publish the given device list to the server .