Add /p/ to the hash when adding a password

This commit is contained in:
yflory
2019-10-22 13:06:21 +02:00
parent 427cf836b1
commit fa2ad4e476
2 changed files with 12 additions and 4 deletions

View File

@@ -1531,8 +1531,7 @@ define([
Store.leavePad = function (clientId, data, cb) {
var channel = channels[data.channel];
if (!channel || !channel.cpNf) { return void cb ({error: 'EINVAL'}); }
channel.cpNf.stop();
delete channels[data.channel];
Store.dropChannel(data.channel);
cb();
};
Store.sendPadMsg = function (clientId, data, cb) {
@@ -1850,7 +1849,7 @@ define([
// Clients management
var driveEventClients = [];
var dropChannel = function (chanId) {
var dropChannel = Store.dropChannel = function (chanId) {
try {
store.messenger.leavePad(chanId);
} catch (e) { console.error(e); }