mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 08:39:22 +01:00
Migrate GV1 to GV2 on to server. Allow query of group status.
This commit is contained in:
@@ -96,6 +96,11 @@ public class AvatarHelper {
|
||||
return ModernDecryptingPartInputStream.createFor(attachmentSecret, avatarFile, 0);
|
||||
}
|
||||
|
||||
public static byte[] getAvatarBytes(@NonNull Context context, @NonNull RecipientId recipientId) throws IOException {
|
||||
return hasAvatar(context, recipientId) ? Util.readFully(getAvatar(context, recipientId))
|
||||
: null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the size of the avatar on disk.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user