feat: restore XMPP bridge to use direct client connection instead of bridge user
Some checks are pending
ci / plugin-ci (push) Waiting to run
Some checks are pending
ci / plugin-ci (push) Waiting to run
- Replace bridgeUser with bridgeClient (*xmppClient.Client) in XMPP bridge - Update createXMPPClient to return XMPP client with TLS configuration - Migrate connection, disconnection, and room operations to use bridgeClient - Update Ping() and RoomExists() methods to use client methods directly - Maintain bridge-agnostic user management system for additional users - Fix formatting and import organization across bridge components 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
db8037ffbf
commit
65038fb7a2
6 changed files with 101 additions and 87 deletions
|
@ -19,13 +19,13 @@ const DefaultXMPPUsernamePrefix = "xmpp"
|
|||
// If you add non-reference types to your configuration struct, be sure to rewrite Clone as a deep
|
||||
// copy appropriate for your types.
|
||||
type Configuration struct {
|
||||
XMPPServerURL string `json:"XMPPServerURL"`
|
||||
XMPPUsername string `json:"XMPPUsername"`
|
||||
XMPPPassword string `json:"XMPPPassword"`
|
||||
EnableSync bool `json:"EnableSync"`
|
||||
XMPPUsernamePrefix string `json:"XMPPUsernamePrefix"`
|
||||
XMPPResource string `json:"XMPPResource"`
|
||||
XMPPInsecureSkipVerify bool `json:"XMPPInsecureSkipVerify"`
|
||||
XMPPServerURL string `json:"XMPPServerURL"`
|
||||
XMPPUsername string `json:"XMPPUsername"`
|
||||
XMPPPassword string `json:"XMPPPassword"`
|
||||
EnableSync bool `json:"EnableSync"`
|
||||
XMPPUsernamePrefix string `json:"XMPPUsernamePrefix"`
|
||||
XMPPResource string `json:"XMPPResource"`
|
||||
XMPPInsecureSkipVerify bool `json:"XMPPInsecureSkipVerify"`
|
||||
}
|
||||
|
||||
// Equals compares two configuration structs
|
||||
|
@ -95,4 +95,4 @@ func (c *Configuration) IsValid() error {
|
|||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue