Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live chat - guest session doesn't destroyed after ending the chat #8097

Closed
Nasr2013 opened this issue Sep 11, 2017 · 2 comments
Closed

Live chat - guest session doesn't destroyed after ending the chat #8097

Nasr2013 opened this issue Sep 11, 2017 · 2 comments

Comments

@Nasr2013
Copy link

In livechat gust can end the chat but still can return and use the chat- I noticed that (Storage: Meteor.loginToken has to be deleted to rest the livechat for the next visitor.

Could you please guide me, where and how I can delete this token.
Thank You,

@Nasr2013
Copy link
Author

I did find a solution,
for(key in localStorage) {
delete localStorage[key];
}
return '';

@Nasr2013
Copy link
Author

File to update:
..\packages\rocketchat-livechat\app\client\views\options.js
function Template.options.events({
'click .end-chat'() {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants