Prioitize PSTN type when present

Stephen Paul Weber created

Change summary

src/main/java/eu/siacs/conversations/ui/EnterJidDialog.java | 1 +
1 file changed, 1 insertion(+)

Detailed changes

src/main/java/eu/siacs/conversations/ui/EnterJidDialog.java 🔗

@@ -531,6 +531,7 @@ public class EnterJidDialog extends DialogFragment implements OnBackendConnected
 
         public String getType(Contact gateway) {
             List<String> types = getTypes(gateway);
+            if (types.contains("pstn")) return "pstn";
             return types.isEmpty() ? null : types.get(0);
         }