From a257b163376174e4f5efcbc82c9fdd56463c3191 Mon Sep 17 00:00:00 2001 From: fiaxh Date: Wed, 30 Aug 2017 00:03:37 +0200 Subject: Download & inline display images --- xmpp-vala/src/module/xep/0045_muc/flag.vala | 5 +++-- xmpp-vala/src/module/xep/0045_muc/module.vala | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) (limited to 'xmpp-vala/src/module/xep') diff --git a/xmpp-vala/src/module/xep/0045_muc/flag.vala b/xmpp-vala/src/module/xep/0045_muc/flag.vala index 00383407..0e1d0c10 100644 --- a/xmpp-vala/src/module/xep/0045_muc/flag.vala +++ b/xmpp-vala/src/module/xep/0045_muc/flag.vala @@ -37,8 +37,9 @@ public class Flag : XmppStreamFlag { return ret; } - public Affiliation? get_affiliation(string muc_jid, string full_jid) { - if (affiliations.has_key(muc_jid) && affiliations[muc_jid].has_key(full_jid)) return affiliations[muc_jid][full_jid]; + public Affiliation get_affiliation(string muc_jid, string full_jid) { + HashMap? muc_affiliations = affiliations[muc_jid]; + if (muc_affiliations != null) return muc_affiliations[full_jid]; return Affiliation.NONE; } diff --git a/xmpp-vala/src/module/xep/0045_muc/module.vala b/xmpp-vala/src/module/xep/0045_muc/module.vala index 98fda1a1..0b92119c 100644 --- a/xmpp-vala/src/module/xep/0045_muc/module.vala +++ b/xmpp-vala/src/module/xep/0045_muc/module.vala @@ -22,16 +22,16 @@ public enum MucEnterError { } public enum Affiliation { + NONE, ADMIN, MEMBER, - NONE, OUTCAST, OWNER } public enum Role { - MODERATOR, NONE, + MODERATOR, PARTICIPANT, VISITOR } -- cgit v1.2.3-70-g09d2