diff options
author | Marvin W <git@larma.de> | 2020-01-09 14:28:08 +0100 |
---|---|---|
committer | Marvin W <git@larma.de> | 2020-01-09 14:28:08 +0100 |
commit | 3fc9bdab053e23ab8e97afadfee0a05afad8d890 (patch) | |
tree | d0637d1aaf6f54ba68e6ce26816518a63eb5f6fb /libdino/src/entity/conversation.vala | |
parent | 5e1f646cbcc0cc4ac08faf76afe5becba4dfd4c6 (diff) | |
download | dino-3fc9bdab053e23ab8e97afadfee0a05afad8d890.tar.gz dino-3fc9bdab053e23ab8e97afadfee0a05afad8d890.zip |
Correctly display names in groupchat pms
Also show "Me" when no local alias is set instead of JID
Diffstat (limited to 'libdino/src/entity/conversation.vala')
-rw-r--r-- | libdino/src/entity/conversation.vala | 6 |
1 files changed, 5 insertions, 1 deletions
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; } |