From b123800f26e78df5b4e01857bc5c2ac6a954ba5b Mon Sep 17 00:00:00 2001 From: fiaxh Date: Sun, 23 Jan 2022 19:00:05 +0100 Subject: Small cleanup --- xmpp-vala/src/module/xep/0272_muji.vala | 2 +- xmpp-vala/src/module/xep/0402_bookmarks2.vala | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'xmpp-vala') diff --git a/xmpp-vala/src/module/xep/0272_muji.vala b/xmpp-vala/src/module/xep/0272_muji.vala index 2bdc068e..b602d94c 100644 --- a/xmpp-vala/src/module/xep/0272_muji.vala +++ b/xmpp-vala/src/module/xep/0272_muji.vala @@ -197,7 +197,7 @@ namespace Xmpp.Xep.Muji { if (group_call.real_jids.has_key(presence.from)) { group_call.peer_left(group_call.real_jids[presence.from]); } - group_call.real_jids.remove(presence.from); + group_call.real_jids.unset(presence.from); } private void on_jid_finished_preparing(XmppStream stream, Jid jid, GroupCall group_call) { diff --git a/xmpp-vala/src/module/xep/0402_bookmarks2.vala b/xmpp-vala/src/module/xep/0402_bookmarks2.vala index cafe1435..3b100534 100644 --- a/xmpp-vala/src/module/xep/0402_bookmarks2.vala +++ b/xmpp-vala/src/module/xep/0402_bookmarks2.vala @@ -16,6 +16,7 @@ public class Module : BookmarksProvider, XmppStreamModule { hm = flag.conferences; } else { Gee.List? items = yield stream.get_module(Pubsub.Module.IDENTITY).request_all(stream, stream.get_flag(Bind.Flag.IDENTITY).my_jid.bare_jid, NS_URI); + if (items == null) return null; hm = new HashMap(Jid.hash_func, Jid.equals_func); foreach (StanzaNode item_node in items) { -- cgit v1.2.3-70-g09d2