<% if profile.members.include?(user) %>
  • <%= button_to_function(:chat, _('Enter chat room'), "open_chat_window(this, '##{profile.full_jid}')") %>
  • <% end %>