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-0.12.4 presence/app/helpers/xmpp_helper.rb
social_stream-0.12.3 presence/app/helpers/xmpp_helper.rb
social_stream-presence-0.0.20 app/helpers/xmpp_helper.rb
social_stream-presence-0.0.19 app/helpers/xmpp_helper.rb
social_stream-0.12.2 presence/app/helpers/xmpp_helper.rb
social_stream-presence-0.0.18 app/helpers/xmpp_helper.rb
social_stream-presence-0.0.17 app/helpers/xmpp_helper.rb
social_stream-presence-0.0.16 app/helpers/xmpp_helper.rb
social_stream-presence-0.0.15 app/helpers/xmpp_helper.rb
social_stream-presence-0.0.14 app/helpers/xmpp_helper.rb
social_stream-0.12.1 presence/app/helpers/xmpp_helper.rb
social_stream-presence-0.0.13 app/helpers/xmpp_helper.rb
social_stream-0.12.0 presence/app/helpers/xmpp_helper.rb
social_stream-presence-0.0.12 app/helpers/xmpp_helper.rb
social_stream-presence-0.0.10 app/helpers/xmpp_helper.rb
social_stream-presence-0.0.9 app/helpers/xmpp_helper.rb
social_stream-presence-0.0.8 app/helpers/xmpp_helper.rb
social_stream-presence-0.0.7 app/helpers/xmpp_helper.rb
social_stream-presence-0.0.6 app/helpers/xmpp_helper.rb
social_stream-0.11.8 presence/app/helpers/xmpp_helper.rb