MCPcopy Create free account
hub / github.com/QLHazyCoder/FlowPilot / returnToInbox

Function returnToInbox

content/gmail-mail.js:505–523  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

503}
504
505async function returnToInbox() {
506 if (/#inbox/i.test(location.href) && collectThreadRows().length > 0) {
507 return;
508 }
509
510 const inboxLink = findInboxLink();
511 if (inboxLink) {
512 simulateClick(inboxLink);
513 } else {
514 location.hash = '#inbox';
515 }
516
517 for (let i = 0; i < 20; i++) {
518 if (collectThreadRows().length > 0) {
519 return;
520 }
521 await sleep(250);
522 }
523}
524
525async function openRowAndGetMessageText(row) {
526 simulateClick(row);

Callers 1

openRowAndGetMessageTextFunction · 0.85

Calls 4

collectThreadRowsFunction · 0.85
findInboxLinkFunction · 0.85
simulateClickFunction · 0.85
sleepFunction · 0.85

Tested by

no test coverage detected