Skip to content

Commit

Permalink
Merge pull request #618 from stokito/account_registration
Browse files Browse the repository at this point in the history
[core] Make AccountManager.getRegistrationInfo() public
  • Loading branch information
Flowdalic authored Sep 14, 2024
2 parents 300106e + c993187 commit af77e56
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -354,15 +354,17 @@ public boolean isSupported()
/**
* Gets the account registration info from the server.
*
* @return Registration information
* @throws XMPPErrorException if there was an XMPP error returned.
* @throws NoResponseException if there was no response from the remote entity.
* @throws NotConnectedException if the XMPP connection is not connected.
* @throws InterruptedException if the calling thread was interrupted.
*/
private synchronized void getRegistrationInfo() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
public synchronized Registration getRegistrationInfo() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
Registration reg = new Registration();
reg.setTo(connection().getXMPPServiceDomain());
info = createStanzaCollectorAndSend(reg).nextResultOrThrow();
return info;
}

private StanzaCollector createStanzaCollectorAndSend(IQ req) throws NotConnectedException, InterruptedException {
Expand Down

0 comments on commit af77e56

Please sign in to comment.