({ threadId })
| 455 | |
| 456 | |
| 457 | async archiveThread({ threadId }) { |
| 458 | this.archiveThreadCalls.push({ threadId }); |
| 459 | if (!this.threads.has(threadId)) { |
| 460 | throw new Error(`thread not found: ${threadId}`); |
| 461 | } |
| 462 | this.archivedThreadIds.add(threadId); |
| 463 | } |
| 464 | |
| 465 | async unarchiveThread({ threadId }) { |
| 466 | this.unarchiveThreadCalls.push({ threadId }); |