MCPcopy
hub / github.com/mailvelope/mailvelope / updateSession

Method updateSession

src/controller/main.controller.js:123–129  ·  view source on GitHub ↗
(id, ctrl)

Source from the content-addressed store, hash-verified

121 }
122
123 updateSession(id, ctrl) {
124 return chrome.storage.session.set({[id]: {
125 mainType: ctrl.mainType,
126 state: ctrl.state,
127 peers: Object.values(ctrl.peers).map(peer => ({id: peer.id, peerType: peer.peerType}))
128 }});
129 }
130
131 delete(id) {
132 this.map.delete(id);

Callers 4

setMethod · 0.95
createPeerMethod · 0.80
removePeerMethod · 0.80
setStateMethod · 0.80

Calls 1

setMethod · 0.45

Tested by

no test coverage detected