Fix avatar display in private group chats

This commit is contained in:
Marvin W 2020-09-13 14:17:25 +02:00
parent fb9352fef1
commit f6943a4c82
No known key found for this signature in database
GPG key ID: 072E9235DB996F2A

View file

@ -106,7 +106,7 @@ public class AvatarImage : Misc {
if (avatar_manager.has_avatar_cached(account, avatar_jid)) { if (avatar_manager.has_avatar_cached(account, avatar_jid)) {
drawer.tile(avatar_manager.get_cached_avatar(account, avatar_jid), display_name, user_color); drawer.tile(avatar_manager.get_cached_avatar(account, avatar_jid), display_name, user_color);
} else if (real_avatar_jid != null && avatar_manager.has_avatar_cached(account, real_avatar_jid)) { } else if (real_avatar_jid != null && avatar_manager.has_avatar_cached(account, real_avatar_jid)) {
drawer.tile(avatar_manager.get_cached_avatar(account, avatar_jid), display_name, user_color); drawer.tile(avatar_manager.get_cached_avatar(account, real_avatar_jid), display_name, user_color);
} else { } else {
drawer.tile(null, display_name, user_color); drawer.tile(null, display_name, user_color);
try_load_avatar_async(avatar_jid); try_load_avatar_async(avatar_jid);