mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-03 09:42:19 +00:00
Support for multi-device.
1) In addition to the Recipient interface, there is now RecipientDevice. A Recipient can have multiple corresponding RecipientDevices. All addressing is done to a Recipient, but crypto sessions and transport delivery are done to RecipientDevice. 2) The Push transport handles the discovery and session setup of additional Recipient devices. 3) Some internal rejiggering of Groups.
This commit is contained in:
@@ -34,6 +34,12 @@ public class NumberUtil {
|
||||
return PhoneNumberUtils.isWellFormedSmsAddress(number) || isValidEmail(number);
|
||||
}
|
||||
|
||||
public static boolean isValidSmsOrEmailOrGroup(String number) {
|
||||
return PhoneNumberUtils.isWellFormedSmsAddress(number) ||
|
||||
isValidEmail(number) ||
|
||||
GroupUtil.isEncodedGroup(number);
|
||||
}
|
||||
|
||||
public static String filterNumber(String number) {
|
||||
if (number == null) return null;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user