fix: LINE webhook verification 200; fix tsgo error (#16582) (thanks @arosstale)

This commit is contained in:
Peter Steinberger
2026-02-15 00:19:16 +01:00
parent 4f2f641950
commit abf42abd41
4 changed files with 8 additions and 4 deletions

View File

@@ -74,7 +74,10 @@ function parseQmdSessionScope(key?: string): ParsedQmdSessionScope {
return { normalizedKey: normalized, chatType: "direct" };
}
function normalizeQmdSessionKey(key: string): string | undefined {
function normalizeQmdSessionKey(key?: string): string | undefined {
if (!key) {
return undefined;
}
const trimmed = key.trim();
if (!trimmed) {
return undefined;