aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2022-01-23 19:00:05 +0100
committerfiaxh <git@lightrise.org>2022-01-23 19:50:01 +0100
commitb123800f26e78df5b4e01857bc5c2ac6a954ba5b (patch)
tree57c6e9aed7b585b5c288f2a527cc63bcd469f0e4 /xmpp-vala/src
parent19a3fa5e02984f186b5291b24954e1a5140d379e (diff)
downloaddino-b123800f26e78df5b4e01857bc5c2ac6a954ba5b.tar.gz
dino-b123800f26e78df5b4e01857bc5c2ac6a954ba5b.zip
Small cleanup
Diffstat (limited to 'xmpp-vala/src')
-rw-r--r--xmpp-vala/src/module/xep/0272_muji.vala2
-rw-r--r--xmpp-vala/src/module/xep/0402_bookmarks2.vala1
2 files changed, 2 insertions, 1 deletions
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<StanzaNode>? 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, Conference>(Jid.hash_func, Jid.equals_func);
foreach (StanzaNode item_node in items) {