Show identity category gateway even without jabber:iq:gateway prompt

This commit is contained in:
Stephen Paul Weber 2022-03-07 23:10:57 -05:00
parent 58cf187f31
commit 82bf15e040
No known key found for this signature in database
GPG Key ID: D11C2911CE519CDE
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ public class EnterJidDialog extends DialogFragment implements OnBackendConnected
for (final Contact contact : account.getRoster().getContacts()) {
if (contact.showInRoster() && (contact.getPresences().anyIdentity("gateway", null) || contact.getPresences().anySupport("jabber:iq:gateway"))) {
context.xmppConnectionService.fetchFromGateway(account, contact.getJid(), null, (final String prompt, String errorMessage) -> {
if (prompt == null) return;
if (prompt == null && !contact.getPresences().anyIdentity("gateway", null)) return;
context.runOnUiThread(() -> {
gatewayListAdapter.add(contact, prompt);