Groups V2 avatar download job.

This commit is contained in:
Alan Evans
2020-04-07 17:55:33 -03:00
committed by Greyson Parrelli
parent e2d3a43593
commit 2b1ffac564
7 changed files with 157 additions and 16 deletions

View File

@@ -380,7 +380,7 @@ public final class GroupDatabase extends Database {
/**
* Used to bust the Glide cache when an avatar changes.
*/
public void onAvatarUpdated(@NonNull GroupId.V1 groupId, boolean hasAvatar) {
public void onAvatarUpdated(@NonNull GroupId.Push groupId, boolean hasAvatar) {
ContentValues contentValues = new ContentValues(1);
contentValues.put(AVATAR_ID, hasAvatar ? Math.abs(new SecureRandom().nextLong()) : 0);