From 3fc9bdab053e23ab8e97afadfee0a05afad8d890 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Thu, 9 Jan 2020 14:28:08 +0100 Subject: Correctly display names in groupchat pms Also show "Me" when no local alias is set instead of JID --- libdino/src/entity/conversation.vala | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libdino/src/entity/conversation.vala') diff --git a/libdino/src/entity/conversation.vala b/libdino/src/entity/conversation.vala index d0ba4920..47ebd5d8 100644 --- a/libdino/src/entity/conversation.vala +++ b/libdino/src/entity/conversation.vala @@ -9,7 +9,11 @@ public class Conversation : Object { public enum Type { CHAT, GROUPCHAT, - GROUPCHAT_PM + GROUPCHAT_PM; + + public bool is_muc_semantic() { + return this == GROUPCHAT || this == GROUPCHAT_PM; + } } public int id { get; set; } -- cgit v1.2.3-54-g00ecf