docs(im): document ImSendOptions.thread default and sync Cordis catalog

This commit is contained in:
MicroBlock committed 2026-11-17 18:19:14 +08:00
1 parent bb16bab1ea
commit a21b2ec44d
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -521,6 +521,11 @@ export interface ImSendOptions extends SendOptions {
* message of the same chat — its `referrer` becomes the target's, so passive replies and thread placement work.
*/
quote?: ImMessageKey
/**
* Thread placement: a `string` targets that explicit thread id; `true` answers inside `quote`'s thread. When both
* `thread` and `quote` are omitted for a `session`, defaults to the thread of the message `ImSessions.trigger(session)`
* answered last in memory (falling back to the chat's main timeline when none exists or after a restart).
*/
thread?: string | true
/** For grants check + attribution. */
session?: SessionId
@@ -7848,7 +7848,7 @@ export const TYPE_API: readonly TypeApiEntry[] = [
},
{
name: 'ImSenderDeps',
declaration: 'export interface ImSenderDeps {\n store: ImStore;\n sessions: Pick<ImSessions, \'of\' | \'get\'>;\n announced?: (key: ImMessageKey) => Promise<ImMessage | undefined>;\n}',
declaration: 'export interface ImSenderDeps {\n store: ImStore;\n sessions: Pick<ImSessions, \'of\' | \'get\' | \'trigger\'>;\n announced?: (key: ImMessageKey) => Promise<ImMessage | undefined>;\n}',
},
{
name: 'ImSendOptions',