chore: format + fix telegram thread ids

This commit is contained in:
Peter Steinberger committed 2026-01-15 09:13:19 +00:00
1 parent 5599603bdb
commit 4291d56e0b
8 files changed
+90 -65

No files matched your search

+1 -5
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 {