diff --git a/app/controllers/public/chat_controller.rb b/app/controllers/public/chat_controller.rb index 6187b6a..0536c42 100644 --- a/app/controllers/public/chat_controller.rb +++ b/app/controllers/public/chat_controller.rb @@ -28,15 +28,6 @@ class ChatController < PublicController end end - def index - #presence = current_user.last_chat_status - #if presence.blank? or presence == 'chat' - # render :action => 'auto_connect_online' - #else - # render :action => 'auto_connect_busy' - #end - end - def update_presence_status if request.xhr? current_user.update_attributes({:chat_status_at => DateTime.now}.merge(params[:status] || {})) diff --git a/app/views/chat/auto_connect_busy.html.erb b/app/views/chat/auto_connect_busy.html.erb deleted file mode 100644 index 26feb96..0000000 --- a/app/views/chat/auto_connect_busy.html.erb +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/app/views/chat/auto_connect_online.html.erb b/app/views/chat/auto_connect_online.html.erb deleted file mode 100644 index 16868be..0000000 --- a/app/views/chat/auto_connect_online.html.erb +++ /dev/null @@ -1,5 +0,0 @@ - diff --git a/app/views/chat/index.html.erb b/app/views/chat/index.html.erb index b7c1769..aa70b00 100644 --- a/app/views/chat/index.html.erb +++ b/app/views/chat/index.html.erb @@ -16,6 +16,18 @@ var $update_presence_status_every = <%= User.expires_chat_status_every.minutes %>; + + <% presence = current_user.last_chat_status %> + +