Skip to content

Commit 9c445ec

Browse files
committed
fix(zalouser): move chatId declaration before first use
1 parent 64c443a commit 9c445ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extensions/zalouser/src/monitor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,14 +136,14 @@ async function processMessage(
136136
}
137137

138138
const isGroup = message.isGroup;
139+
const chatId = message.threadId;
139140
const senderId = message.senderId?.trim();
140141
if (!senderId) {
141142
logVerbose(core, runtime, `zalouser: drop message ${chatId} (missing senderId)`);
142143
return;
143144
}
144145
const senderName = message.senderName ?? "";
145146
const groupName = message.groupName ?? "";
146-
const chatId = message.threadId;
147147

148148
const defaultGroupPolicy = resolveDefaultGroupPolicy(config);
149149
const { groupPolicy, providerMissingFallbackApplied } = resolveOpenProviderRuntimeGroupPolicy({

0 commit comments

Comments
 (0)