Sha256: 430fd5538c928ea160abb800066276f8a3f95d3d69fef2093421649cd872d778

Contents?: true

Size: 369 Bytes

Versions: 24

Compression:

Stored size: 369 Bytes

Contents

module XmppHelper
  
  def getChatContacts 
     connected_users = []   
     
     #Get bidirectional contacts
     contacts = current_user.contact_actors(:type=>:user)
     
     #Apply filters
     
     contacts.each do |contact|
       if contact.user.connected
         connected_users << contact.user
       end
     end

    return connected_users  
  end

end

Version data entries

24 entries across 24 versions & 2 rubygems

Version Path
social_stream-presence-0.0.5 app/helpers/xmpp_helper.rb
social_stream-presence-0.0.4 app/helpers/xmpp_helper.rb
social_stream-0.11.7 presence/app/helpers/xmpp_helper.rb
social_stream-0.11.6 presence/app/helpers/xmpp_helper.rb