chore: format + fix telegram thread ids

This commit is contained in:
Peter Steinberger
2026-01-15 09:13:13 +00:00
parent 5599603bdb
commit 4291d56e0b
8 changed files with 90 additions and 65 deletions

View File

@@ -155,11 +155,7 @@ export function resolveCommandAuthorization(params: {
const senderId = matchedSender ?? senderCandidates[0];
const enforceOwner = Boolean(dock?.commands?.enforceOwnerForCommands);
const isOwner =
!enforceOwner ||
allowAll ||
ownerList.length === 0 ||
Boolean(matchedSender);
const isOwner = !enforceOwner || allowAll || ownerList.length === 0 || Boolean(matchedSender);
const isAuthorizedSender = commandAuthorized && isOwner;
return {