Register MatrixService in BridgeModule with conditional loading #379
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Update
BridgeModuleto registerMatrixServicealongsideDiscordService, with conditional loading based on environment variables.Implementation
Update
apps/api/src/bridge/bridge.module.tsBoth bridges should be optional — load only if configured:
Consider: Bridge registry pattern
If more bridges are planned, consider a
BridgeRegistryservice that discovers and manages all activeIChatProviderimplementations. Herald and Stitcher would interact with the registry rather than individual services.Acceptance Criteria
Refs
apps/api/src/bridge/bridge.module.tsCompleted in commit
771ed48on branch feature/m12-matrix-bridge.