Sha256: 0fd8a2ec9599b0baf0ce352036d41bc27a5e1b36b0b70dbf99d3284b822a1ae5

Contents?: true

Size: 371 Bytes

Versions: 57

Compression:

Stored size: 371 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

57 entries across 57 versions & 3 rubygems

Version Path
social_stream-0.17.0 presence/app/helpers/xmpp_helper.rb
social_stream-presence-0.3.0 app/helpers/xmpp_helper.rb
social_stream-0.16.3 presence/app/helpers/xmpp_helper.rb
social_stream-0.16.2 presence/app/helpers/xmpp_helper.rb
social_stream-presence-0.2.1 app/helpers/xmpp_helper.rb
social_stream-0.16.1 presence/app/helpers/xmpp_helper.rb
social_stream-0.15.8 presence/app/helpers/xmpp_helper.rb
social_stream-0.15.7 presence/app/helpers/xmpp_helper.rb
social_stream-0.15.6 presence/app/helpers/xmpp_helper.rb
social_stream-presence-0.2.0 app/helpers/xmpp_helper.rb
social_stream-presence-0.1.7 app/helpers/xmpp_helper.rb
social_stream-0.15.5 presence/app/helpers/xmpp_helper.rb
social_stream-presence-0.1.6 app/helpers/xmpp_helper.rb
social_stream-0.15.4 presence/app/helpers/xmpp_helper.rb
social_stream-0.15.1 presence/app/helpers/xmpp_helper.rb
social_stream-0.15.0 presence/app/helpers/xmpp_helper.rb
social_stream-presence-0.1.4 app/helpers/xmpp_helper.rb
social_stream-0.14.1 presence/app/helpers/xmpp_helper.rb
social_stream-0.14.0 presence/app/helpers/xmpp_helper.rb
social_stream-0.13.3 presence/app/helpers/xmpp_helper.rb