mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-25 09:08:37 +00:00
Make delivery receipts work correctly for groups.
This commit is contained in:
@@ -134,6 +134,13 @@ public class Util {
|
||||
return PhoneNumberFormatter.formatNumber(number, localNumber);
|
||||
}
|
||||
|
||||
public static String canonicalizeNumberOrGroup(Context context, String number)
|
||||
throws InvalidNumberException
|
||||
{
|
||||
if (GroupUtil.isEncodedGroup(number)) return number;
|
||||
else return canonicalizeNumber(context, number);
|
||||
}
|
||||
|
||||
public static byte[] readFully(InputStream in) throws IOException {
|
||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
byte[] buffer = new byte[4069];
|
||||
|
||||
Reference in New Issue
Block a user