Fix unfriend bug
parent
6de97cac14
commit
592544819e
|
@ -612,6 +612,15 @@ define([
|
|||
cb();
|
||||
});
|
||||
});
|
||||
} else {
|
||||
removeFromFriendList(curvePublic, function () {
|
||||
delete channels[channel.id];
|
||||
emit('UNFRIEND', {
|
||||
curvePublic: curvePublic,
|
||||
fromMe: true
|
||||
});
|
||||
cb();
|
||||
});
|
||||
}
|
||||
channel.wc.bcast(cryptMsg).then(function () {}, function (err) {
|
||||
console.error(err);
|
||||
|
|
Loading…
Reference in New Issue