MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / removePeer

Method removePeer

src/controller/sub.controller.js:81–88  ·  view source on GitHub ↗
(type)

Source from the content-addressed store, hash-verified

79 }
80
81 async removePeer(type) {
82 if (!this.peers[type]) {
83 return;
84 }
85 await controllerPool.delete(this.peers[type].id);
86 delete this.peers[type];
87 await controllerPool.updateSession(this.id, this);
88 }
89
90 async setState(nextState) {
91 this.state = {...this.state, ...nextState};

Callers 4

encryptedMessageMethod · 0.80
encryptErrorMethod · 0.80
encryptedMessageMethod · 0.80
encryptErrorMethod · 0.80

Calls 2

updateSessionMethod · 0.80
deleteMethod · 0.45

Tested by

no test coverage detected