fix: trim sender ids before auth fallback
This commit is contained in:
1 parent
5a2688c7b5
commit
c2e37c78ff
5 files changed
+98
-2
No files matched your search
@@ -96,7 +96,9 @@ export function resolveCommandAuthorization(params: {
|
||||
}
|
||||
const ownerList = ownerCandidates;
|
||||
|
||||
const senderRaw = ctx.SenderId || ctx.SenderE164 || from;
|
||||
const senderIdCandidate = ctx.SenderId?.trim() ?? "";
|
||||
const senderE164Candidate = ctx.SenderE164?.trim() ?? "";
|
||||
const senderRaw = senderIdCandidate || senderE164Candidate || from;
|
||||
const senderId = senderRaw
|
||||
? formatAllowFromList({
|
||||
dock,
|
||||
|
||||
Reference in new issue
Block a user