Some old group avatar IDs can be 0

Fixes #7235
This commit is contained in:
Moxie Marlinspike 2017-12-01 13:56:56 -08:00
parent 3523952ef9
commit 02c422cb26

View file

@ -141,7 +141,7 @@ class RecipientProvider {
title = context.getString(R.string.RecipientProvider_unnamed_group); title = context.getString(R.string.RecipientProvider_unnamed_group);
} }
if (groupRecord.get().getAvatarId() != 0) { if (groupRecord.get().getAvatar() != null && groupRecord.get().getAvatar().length > 0) {
avatarId = groupRecord.get().getAvatarId(); avatarId = groupRecord.get().getAvatarId();
} }