public void removeBookmarkedConference ( EntityBareJid jid ) throws NoResponseException , XMPPErrorException , NotConnectedException , InterruptedException { retrieveBookmarks ( ) ; Iterator < BookmarkedConference > it = bookmarks . getBookmarkedConferences ( ) . iterator ( ) ; while ( it . hasNext ( ) ) { BookmarkedConference conference = it . next ( ) ; if ( conference . getJid ( ) . equals ( jid ) ) { if ( conference . isShared ( ) ) { throw new IllegalArgumentException ( "Conference is shared and can't be removed" ) ; } it . remove ( ) ; privateDataManager . setPrivateData ( bookmarks ) ; return ; } } }
Removes a conference from the bookmarks .