mirror of
https://codeberg.org/monocles/monocles_chat.git
synced 2025-01-28 16:04:10 +01:00
Use known gateays during onboarding
(cherry picked from commit c134019490b77d41d844cd735c97e0e8e7ac75a8)
This commit is contained in:
parent
acb1dda2b0
commit
fcd01ec1bd
1 changed files with 3 additions and 10 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue