This commit is contained in:
Stephen Paul Weber 2022-03-28 18:14:02 -05:00
parent e0e088479c
commit 541c90c597
No known key found for this signature in database
GPG Key ID: D11C2911CE519CDE
1 changed files with 6 additions and 0 deletions

View File

@ -112,6 +112,12 @@ public class ConnectionService extends android.telecom.ConnectionService {
}
Account account = xmppConnectionService.findAccountByJid(Jid.of(gateway[0]));
if (account == null) {
return Connection.createFailedConnection(
new DisconnectCause(DisconnectCause.ERROR)
);
}
Jid with = Jid.ofLocalAndDomain(tel, gateway[1]);
CheogramConnection connection = new CheogramConnection(account, with, postDial);