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.20.2 presence/app/helpers/xmpp_helper.rb
social_stream-presence-0.6.2 app/helpers/xmpp_helper.rb
social_stream-0.20.1 presence/app/helpers/xmpp_helper.rb
social_stream-presence-0.6.1 app/helpers/xmpp_helper.rb
social_stream-0.20.0 presence/app/helpers/xmpp_helper.rb
social_stream-presence-0.6.0 app/helpers/xmpp_helper.rb
social_stream-presence-0.5.4 app/helpers/xmpp_helper.rb
social_stream-presence-0.5.3 app/helpers/xmpp_helper.rb
social_stream-0.19.3 presence/app/helpers/xmpp_helper.rb
social_stream-presence-0.5.2 app/helpers/xmpp_helper.rb
social_stream-0.19.2 presence/app/helpers/xmpp_helper.rb
social_stream-0.19.1 presence/app/helpers/xmpp_helper.rb
vkhater-social_stream-0.16.3.3 presence/app/helpers/xmpp_helper.rb
social_stream-0.19.0 presence/app/helpers/xmpp_helper.rb
social_stream-presence-0.5.0 app/helpers/xmpp_helper.rb
social_stream-0.18.2 presence/app/helpers/xmpp_helper.rb
social_stream-0.18.1 presence/app/helpers/xmpp_helper.rb
social_stream-0.18.0 presence/app/helpers/xmpp_helper.rb
social_stream-presence-0.4.0 app/helpers/xmpp_helper.rb
social_stream-0.17.1 presence/app/helpers/xmpp_helper.rb