MCPcopy
hub / github.com/mailvelope/mailvelope / getRecipients

Method getRecipients

src/content-scripts/providerSpecific.js:199–209  ·  view source on GitHub ↗
(editElement)

Source from the content-addressed store, hash-verified

197
198class Outlook {
199 getRecipients(editElement) {
200 return new Promise(resolve => {
201 // get compose area
202 const composeArea = editElement.closest('[role="main"]');
203 // find personas in compose are
204 const personas = composeArea.querySelectorAll('[data-selection-index] .lpc-hoverTarget');
205 setTimeout(() => {
206 resolve(sequential(this.extractPersona.bind(this), Array.from(personas)));
207 }, 500);
208 });
209 }
210
211 waitForPersonaCard(action) {
212 return new Promise((resolve, reject) => {

Callers

nothing calls this directly

Calls 2

sequentialFunction · 0.90
resolveFunction · 0.85

Tested by

no test coverage detected