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.13.2 presence/app/helpers/xmpp_helper.rb
social_stream-0.13.1 presence/app/helpers/xmpp_helper.rb
social_stream-presence-0.1.2 app/helpers/xmpp_helper.rb
social_stream-0.13.0 presence/app/helpers/xmpp_helper.rb
social_stream-presence-0.1.1 app/helpers/xmpp_helper.rb
social_stream-0.12.14 presence/app/helpers/xmpp_helper.rb
social_stream-0.12.13 presence/app/helpers/xmpp_helper.rb
social_stream-0.12.12 presence/app/helpers/xmpp_helper.rb
social_stream-presence-0.1.0 app/helpers/xmpp_helper.rb
social_stream-0.12.11 presence/app/helpers/xmpp_helper.rb
social_stream-0.12.10 presence/app/helpers/xmpp_helper.rb
social_stream-0.12.9 presence/app/helpers/xmpp_helper.rb
social_stream-0.12.8 presence/app/helpers/xmpp_helper.rb
social_stream-0.12.7 presence/app/helpers/xmpp_helper.rb
social_stream-0.12.6 presence/app/helpers/xmpp_helper.rb
social_stream-0.12.5 presence/app/helpers/xmpp_helper.rb
social_stream-presence-0.0.21 app/helpers/xmpp_helper.rb