diff options
author | Marvin W <git@larma.de> | 2020-09-12 17:51:13 +0200 |
---|---|---|
committer | Marvin W <git@larma.de> | 2020-09-12 17:51:13 +0200 |
commit | 928802332cca8185e2ff433e03b7e79d90a0507e (patch) | |
tree | 33102374c63075fc861a2ad04ffca926f73f72cf /main/src | |
parent | a22146fd72860817907795012257777a32539097 (diff) | |
download | dino-928802332cca8185e2ff433e03b7e79d90a0507e.tar.gz dino-928802332cca8185e2ff433e03b7e79d90a0507e.zip |
Make compatible with older vala compilers
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/ui/avatar_image.vala | 6 |
1 files changed, 3 insertions, 3 deletions
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); |