Merge pull request #10 from status-im/leave-channel-http-provider
Fixing web3 undefined by changing to this.shh
This commit is contained in:
commit
575f72a6c5
|
@ -114,11 +114,10 @@ class StatusJS {
|
||||||
if (!this.isHttpProvider) {
|
if (!this.isHttpProvider) {
|
||||||
this.channels[channelName].subscription.unsubscribe();
|
this.channels[channelName].subscription.unsubscribe();
|
||||||
} else {
|
} else {
|
||||||
// TODO: fix me
|
this.shh.deleteMessageFilter(this.channels[channelName].filterId)
|
||||||
// web3.shh.deleteMessageFilter(this.channels[channelName].filterId)
|
.then(() => {
|
||||||
// .then(result => {
|
clearInterval(this.channels[channelName].interval);
|
||||||
// clearInterval(this.channels[channelName].interval);
|
});
|
||||||
// });
|
|
||||||
}
|
}
|
||||||
delete this.channels[channelName];
|
delete this.channels[channelName];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue