lib/blather/stanza/iq/roster.rb in blather-0.2.2 vs lib/blather/stanza/iq/roster.rb in blather-0.2.3
- old
+ new
@@ -25,11 +25,11 @@
end
##
# Roster items
def items
- items = query.find('//item', self.class.ns)
- items = query.find('//query_ns:item', :query_ns => self.class.ns) if items.empty?
+ items = query.find('item')
+ items = query.find('query_ns:item', :query_ns => self.class.ns) if items.empty?
items.map { |i| RosterItem.new(i) }
end
class RosterItem < XMPPNode
##
\ No newline at end of file