Delete validateKey in the messenger memory when we leave the channel

pull/1/head
yflory 6 years ago
parent d88dee9a83
commit a121df2600

@ -959,6 +959,7 @@ define([
messenger.leavePad = function (padChan) { messenger.leavePad = function (padChan) {
// Leave chat and prevent reconnect when we leave a pad // Leave chat and prevent reconnect when we leave a pad
delete validateKeys[padchan];
Object.keys(channels).some(function (chatChan) { Object.keys(channels).some(function (chatChan) {
var channel = channels[chatChan]; var channel = channels[chatChan];
if (channel.padChan !== padChan) { return; } if (channel.padChan !== padChan) { return; }

Loading…
Cancel
Save