Commit f20073a
committed
fix(feishu): omit both replyToMessageId and rootId from streaming.start() in DM chats
In DM chats (skipReplyToInMessages=true), the streaming card start()
previously received the raw replyToMessageId and rootId, causing
resolveStreamingCardSendMode to choose "reply" or "root_create" mode
instead of "create". This mismatched the behavior of plain-text and
static-card sends, which omit reply metadata in DMs.
- Pass sendReplyToMessageId (already undefined in DM) to streaming.start()
- Add streamingRootId: undefined in DM (skipReplyToInMessages=true),
preserving rootId for group/thread streaming
- Add regression tests for DM (both fields omitted) and group (both
preserved) streaming card send modes
Closes #949221 parent df8a19e commit f20073a
2 files changed
Lines changed: 31 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1565 | 1565 | | |
1566 | 1566 | | |
1567 | 1567 | | |
1568 | | - | |
1569 | | - | |
1570 | | - | |
1571 | | - | |
| 1568 | + | |
| 1569 | + | |
| 1570 | + | |
| 1571 | + | |
| 1572 | + | |
1572 | 1573 | | |
1573 | 1574 | | |
1574 | | - | |
| 1575 | + | |
1575 | 1576 | | |
| 1577 | + | |
1576 | 1578 | | |
1577 | 1579 | | |
1578 | 1580 | | |
1579 | 1581 | | |
1580 | 1582 | | |
1581 | 1583 | | |
| 1584 | + | |
1582 | 1585 | | |
1583 | 1586 | | |
1584 | 1587 | | |
1585 | 1588 | | |
1586 | 1589 | | |
| 1590 | + | |
| 1591 | + | |
| 1592 | + | |
| 1593 | + | |
| 1594 | + | |
| 1595 | + | |
| 1596 | + | |
| 1597 | + | |
| 1598 | + | |
| 1599 | + | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
| 1607 | + | |
1587 | 1608 | | |
1588 | 1609 | | |
1589 | 1610 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
171 | 171 | | |
172 | 172 | | |
173 | 173 | | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
174 | 178 | | |
175 | 179 | | |
176 | 180 | | |
| |||
394 | 398 | | |
395 | 399 | | |
396 | 400 | | |
397 | | - | |
| 401 | + | |
398 | 402 | | |
399 | 403 | | |
400 | 404 | | |
| |||
0 commit comments