@openclaw/nextcloud-talk 2026.2.9 → 2026.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/accounts.ts +1 -10
- package/src/inbound.ts +1 -0
package/package.json
CHANGED
package/src/accounts.ts
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
import { readFileSync } from "node:fs";
|
|
2
|
-
import { DEFAULT_ACCOUNT_ID, normalizeAccountId } from "openclaw/plugin-sdk";
|
|
2
|
+
import { DEFAULT_ACCOUNT_ID, isTruthyEnvValue, normalizeAccountId } from "openclaw/plugin-sdk";
|
|
3
3
|
import type { CoreConfig, NextcloudTalkAccountConfig } from "./types.js";
|
|
4
4
|
|
|
5
|
-
const TRUTHY_ENV = new Set(["true", "1", "yes", "on"]);
|
|
6
|
-
|
|
7
|
-
function isTruthyEnvValue(value?: string): boolean {
|
|
8
|
-
if (!value) {
|
|
9
|
-
return false;
|
|
10
|
-
}
|
|
11
|
-
return TRUTHY_ENV.has(value.trim().toLowerCase());
|
|
12
|
-
}
|
|
13
|
-
|
|
14
5
|
const debugAccounts = (...args: unknown[]) => {
|
|
15
6
|
if (isTruthyEnvValue(process.env.OPENCLAW_DEBUG_NEXTCLOUD_TALK_ACCOUNTS)) {
|
|
16
7
|
console.warn("[nextcloud-talk:accounts]", ...args);
|
package/src/inbound.ts
CHANGED
|
@@ -263,6 +263,7 @@ export async function handleNextcloudTalkInbound(params: {
|
|
|
263
263
|
|
|
264
264
|
const ctxPayload = core.channel.reply.finalizeInboundContext({
|
|
265
265
|
Body: body,
|
|
266
|
+
BodyForAgent: rawBody,
|
|
266
267
|
RawBody: rawBody,
|
|
267
268
|
CommandBody: rawBody,
|
|
268
269
|
From: isGroup ? `nextcloud-talk:room:${roomToken}` : `nextcloud-talk:${senderId}`,
|