Some old group avatar IDs can be 0

Fixes #7235
fork-5.53.8
Moxie Marlinspike 2017-12-01 13:56:56 -08:00
rodzic 3523952ef9
commit 02c422cb26
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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();
}