fossasia / susi_chromebot

SUSI.AI Chrome Extension
GNU Lesser General Public License v2.1
1.54k stars 139 forks source link

Remove wrong check if user is logged in. #324

Closed rupav closed 5 years ago

rupav commented 5 years ago

Fixes #323

Checklist

Short description of what this resolves:

Earlier we had overlapping message on previous chat. Also although I was logged in, it was showing log in option in dropdown, Instead it should have been Logout. hello_there

Changes proposed in this pull request:

Solved this. It will check if user email if logged in and then set the access token. Earlier it was checking access token and user email, but access token wasn't present at all/set! fixlogoutissue

rupav commented 5 years ago

@zamhaq @gabru-md please review.