@mcinteerj/openclaw-gmail 1.6.0 → 1.6.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/outbound.ts +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mcinteerj/openclaw-gmail",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Gmail channel plugin for OpenClaw - direct API or gog CLI",
5
5
  "type": "module",
6
6
  "main": "index.ts",
package/src/outbound.ts CHANGED
@@ -153,7 +153,7 @@ export async function sendGmailText(ctx: GmailOutboundContext) {
153
153
  ?? true;
154
154
  if (isThread && archiveOnReply) {
155
155
  // Best effort archive
156
- client.modifyLabels(toValue, { remove: ["INBOX"] }).catch((err) => {
156
+ client.modifyThreadLabels(toValue, { remove: ["INBOX"] }).catch((err) => {
157
157
  console.error(`Failed to archive thread ${toValue}: ${err instanceof Error ? err.message : String(err)}`);
158
158
  });
159
159
  }