Merge pull request #10 from status-im/leave-channel-http-provider

Fixing web3 undefined by changing to this.shh
This commit is contained in:
Richard Ramos 2018-12-01 20:33:27 -04:00 committed by GitHub
commit 575f72a6c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 5 deletions

View File

@ -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];
} }