/** * Goes through the locally stored chat rooms list and for each {@link ChatRoomWrapper} tries to * find the corresponding server stored {@link ChatRoom} in the specified operation set. Joins * automatically all found chat rooms. * * @param protocolProvider the protocol provider for the account to synchronize * @param opSet the multi user chat operation set, which give us access to chat room server */ public void synchronizeOpSetWithLocalContactList( ProtocolProviderService protocolProvider, final OperationSetMultiUserChat opSet) { ChatRoomProviderWrapper chatRoomProvider = findServerWrapperFromProvider(protocolProvider); if (chatRoomProvider == null) { chatRoomProvider = chatRoomList.addRegisteredChatProvider(protocolProvider); } if (chatRoomProvider != null) { chatRoomProvider.synchronizeProvider(); } }