| 1524 | } |
| 1525 | |
| 1526 | post( |
| 1527 | content: { |
| 1528 | readonly markdown?: string |
| 1529 | readonly replyTo?: ReplyTo |
| 1530 | readonly files?: ReadonlyArray<File> |
| 1531 | readonly actions?: ReadonlyArray<ChatUi.Action> |
| 1532 | }, |
| 1533 | thread = this.thread |
| 1534 | ) { |
| 1535 | return Effect.tap( |
| 1536 | this.call(this.chat.post(thread, { markdown: conformanceText(this.rule), ...content })), |
| 1537 | (posted) => Effect.sync(() => this.created.push({ thread, id: posted.id })) |
| 1538 | ) |
| 1539 | } |
| 1540 | |
| 1541 | userPosts(thread = this.thread) { |
| 1542 | return Effect.flatMap( |