Use known gateays during onboarding

(cherry picked from commit c134019490b77d41d844cd735c97e0e8e7ac75a8)
This commit is contained in:
Stephen Paul Weber 2024-09-14 23:57:52 -05:00 committed by Arne
parent acb1dda2b0
commit fcd01ec1bd

View file

@ -1253,16 +1253,9 @@ public class StartConversationActivity extends XmppActivity
}
}
for (Contact contact : account.getRoster().getContacts()) {
if (contact.getPresences().anyIdentity("gateway", "pstn")) {
hasPstnOrSms = true;
break outer;
}
if (contact.getPresences().anyIdentity("gateway", "sms")) {
hasPstnOrSms = true;
break outer;
}
}
final var hasGw = account.getGateways("pstn").size() > 0 || account.getGateways("sms").size() > 0;
hasPstnOrSms = hasPstnOrSms || hasGw;
if (hasGw) break outer;
}
if (!hasPstnOrSms) {