Fixed long poling without session user.
This commit is contained in:
parent
9cd3542d72
commit
4adf2e3750
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ class LongPollingController < ApplicationController
|
|||
params['data'] = {}
|
||||
end
|
||||
session_data = {}
|
||||
if current_user.id
|
||||
if current_user && current_user.id
|
||||
session_data = { 'id' => current_user.id }
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue