feat: add /xmppbridge unmap command for channel unmapping

- Add DeleteChannelRoomMapping method to Bridge interface
- Implement channel unmapping logic in XMPP bridge (cache + KVStore removal)
- Add /xmppbridge unmap command handler with validation
- Bridge user automatically leaves XMPP room when unmapping
- Update command help text and autocomplete

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Felipe M 2025-08-01 16:44:59 +02:00
parent 43f0fb1892
commit 5551a8bc8d
No known key found for this signature in database
GPG key ID: 52E5D65FCF99808A
3 changed files with 101 additions and 3 deletions

View file

@ -57,6 +57,9 @@ type Bridge interface {
// GetChannelRoomMapping retrieves the bridge room ID for a given Mattermost channel ID.
GetChannelRoomMapping(channelID string) (string, error)
// DeleteChannelRoomMapping removes a mapping between a Mattermost channel ID and a bridge room ID.
DeleteChannelRoomMapping(channelID string) error
// IsConnected checks if the bridge is connected to the remote service.
IsConnected() bool
}