Some old group avatar IDs can be 0

Fixes #7235
pull/1/head
Moxie Marlinspike 7 years ago
parent 3523952ef9
commit 02c422cb26

@ -141,7 +141,7 @@ class RecipientProvider {
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();
}

Loading…
Cancel
Save