diff options
author | fiaxh <git@mx.ax.lt> | 2017-05-21 23:30:30 +0200 |
---|---|---|
committer | fiaxh <git@mx.ax.lt> | 2017-05-22 01:02:09 +0200 |
commit | bcb96909c9b53c2ca5287433f2fef103b0ddf317 (patch) | |
tree | 2cf49f939f4ad8818444802080580043c233c40c /xmpp-vala/src/module/roster/item.vala | |
parent | 4247922e8cc85b488997ebef2121e6f3055e1e26 (diff) | |
download | dino-bcb96909c9b53c2ca5287433f2fef103b0ddf317.tar.gz dino-bcb96909c9b53c2ca5287433f2fef103b0ddf317.zip |
Roster versioning
Diffstat (limited to 'xmpp-vala/src/module/roster/item.vala')
-rw-r--r-- | xmpp-vala/src/module/roster/item.vala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmpp-vala/src/module/roster/item.vala b/xmpp-vala/src/module/roster/item.vala index 7ef76fd4..1e39fce2 100644 --- a/xmpp-vala/src/module/roster/item.vala +++ b/xmpp-vala/src/module/roster/item.vala @@ -25,12 +25,12 @@ public class Item { public string? name { get { return stanza_node.get_attribute(NODE_NAME); } - set { stanza_node.set_attribute(NODE_NAME, value); } + set { if (value != null) stanza_node.set_attribute(NODE_NAME, value); } } public string? subscription { get { return stanza_node.get_attribute(NODE_SUBSCRIPTION); } - set { stanza_node.set_attribute(NODE_SUBSCRIPTION, value); } + set { if (value != null) stanza_node.set_attribute(NODE_SUBSCRIPTION, value); } } public Item() { |