fix(routing): only route to originating channel when cross-provider
When OriginatingChannel matches Surface (same provider), use normal dispatcher. Only route via routeReply() when they differ, ensuring cross-provider messages (e.g., Telegram queued while Slack active) get routed back to their origin.
This commit is contained in:
committed by
Peter Steinberger
parent
9d50ebad7d
commit
2d67ec5bfa
@@ -366,6 +366,7 @@ export async function monitorIMessageProvider(
|
||||
SenderName: sender,
|
||||
SenderId: sender,
|
||||
Provider: "imessage",
|
||||
Surface: "imessage",
|
||||
MessageSid: message.id ? String(message.id) : undefined,
|
||||
Timestamp: createdAt,
|
||||
MediaPath: mediaPath,
|
||||
|
||||
Reference in New Issue
Block a user