aboutsummaryrefslogtreecommitdiff
path: root/xmpp-vala/src/module/roster/item.vala
diff options
context:
space:
mode:
Diffstat (limited to 'xmpp-vala/src/module/roster/item.vala')
-rw-r--r--xmpp-vala/src/module/roster/item.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmpp-vala/src/module/roster/item.vala b/xmpp-vala/src/module/roster/item.vala
index 4c9f30ef..e388bd06 100644
--- a/xmpp-vala/src/module/roster/item.vala
+++ b/xmpp-vala/src/module/roster/item.vala
@@ -18,7 +18,7 @@ public class Item {
public Jid? jid {
get {
try {
- return jid_ ?? (jid_ = new Jid(stanza_node.get_attribute("jid")));
+ return jid_ ?? (jid_ = Jid.from_string(stanza_node.get_attribute("jid")));
} catch (InvalidJidError e) {
warning("Ignoring invalid Jid in roster entry: %s", e.message);
return null;