Permalink
Browse files

bakusoku2

  • Loading branch information...
sorah committed Oct 22, 2017
1 parent 7b4f5cf commit c41bad5b1fe5ee3b6a4ec1b3e112929f7e3372f5
Showing with 1 addition and 2 deletions.
  1. +1 −2 isubata/webapp/ruby/app.rb
@@ -169,6 +169,7 @@ def user
@channel_id = params[:channel_id].to_i
@channels, @description = get_channel_list_info(@channel_id)
session[:bakusoku] = true
erb :channel
end
@@ -252,8 +253,6 @@ def user
max_message_id = rows.empty? ? 0 : rows.map { |row| row['id'] }.max
redis.hset(redis_key_lastreads(user_id), channel_id, max_message_id)
session[:bakusoku] = true
content_type :json
response.to_json
end

0 comments on commit c41bad5

Please sign in to comment.