refactor(gateway): run_shutdown resolves adapters through the intake/delivery seams

Mechanical migration of the `_adapter_for_source` call sites in this sibling. Intake policy sites take `_intake_adapter_for`; every send/edit/typing/pending-slot site takes `_delivery_adapter_for`. Part of #88715 (phase 4).
This commit is contained in:
teknium1
2026-09-19 00:09:02 -07:00
committed by Teknium
parent 217631a55e
commit dc633ee5bb

View File

@@ -1005,7 +1005,7 @@ class GatewayShutdownMixin:
# The session's OWN profile's bot (transport ref → profile map), never a bare
# self.adapters hit: under multiplex that is the default bot, so a secondary session's
# "Gateway shutting down" would land in the user's chat with the wrong bot.
adapter = self._adapter_for_source(source) if source is not None else None
adapter = self._delivery_adapter_for(source) if source is not None else None
if adapter is None:
adapter = self._authorization_adapter(platform, profile)
if not adapter: