From 928802332cca8185e2ff433e03b7e79d90a0507e Mon Sep 17 00:00:00 2001 From: Marvin W Date: Sat, 12 Sep 2020 17:51:13 +0200 Subject: Make compatible with older vala compilers --- main/src/ui/avatar_image.vala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main/src/ui') diff --git a/main/src/ui/avatar_image.vala b/main/src/ui/avatar_image.vala index b2f44ae2..d686760c 100644 --- a/main/src/ui/avatar_image.vala +++ b/main/src/ui/avatar_image.vala @@ -69,12 +69,12 @@ public class AvatarImage : Misc { Jid[] jids = this.jids; if (drawer == null && jids.length == 0) { switch (conversation.type_) { - case CHAT: - case GROUPCHAT_PM: + case Conversation.Type.CHAT: + case Conversation.Type.GROUPCHAT_PM: // In direct chats or group chats, conversation avatar is same as counterpart avatar jids = { conversation.counterpart }; break; - case GROUPCHAT: + case Conversation.Type.GROUPCHAT: string user_color = Util.get_avatar_hex_color(stream_interactor, account, conversation.counterpart, conversation); if (avatar_manager.has_avatar_cached(account, conversation.counterpart)) { drawer = new AvatarDrawer().tile(avatar_manager.get_cached_avatar(account, conversation.counterpart), "#", user_color); -- cgit v1.2.3-70-g09d2