refactor: simplify chunk mode handling for BlueBubbles

- Removed `chunkMode` configuration from various account schemas and types, centralizing chunk mode logic to BlueBubbles only.
- Updated `processMessage` to default to "newline" for BlueBubbles chunking.
- Adjusted tests to reflect changes in chunk mode handling for BlueBubbles, ensuring proper functionality.
This commit is contained in:
Tyler Yust authored and Peter Steinberger committed 2026-01-25 00:40:41 +00:00
1 parent 50cec30c76
commit 824154deba
20 files changed
+20 -59

No files matched your search

+1 -5
View File
@@ -1851,11 +1851,7 @@ async function processMessage(
account.config.textChunkLimit && account.config.textChunkLimit > 0
? account.config.textChunkLimit
: DEFAULT_TEXT_LIMIT;
const chunkMode = core.channel.text.resolveChunkMode(
config,
"bluebubbles",
account.accountId,
);
const chunkMode = account.config.chunkMode ?? "newline";
const tableMode = core.channel.text.resolveMarkdownTableMode({
cfg: config,
channel: "bluebubbles",