()
| 503 | } |
| 504 | |
| 505 | async 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 | |
| 525 | async function openRowAndGetMessageText(row) { |
| 526 | simulateClick(row); |
no test coverage detected