chore: fix lint issues
This commit is contained in:
parent
17ea21a579
commit
7c37953c28
20 changed files with 136 additions and 131 deletions
|
@ -85,7 +85,7 @@ func (h *xmppMessageHandler) sendMessageToXMPP(msg *pluginModel.BridgeMessage) e
|
|||
}
|
||||
|
||||
// Send the message
|
||||
_, err = h.bridge.bridgeClient.SendMessage(req)
|
||||
_, err = h.bridge.bridgeClient.SendMessage(&req)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to send message to XMPP room: %w", err)
|
||||
}
|
||||
|
@ -144,7 +144,7 @@ func (r *xmppUserResolver) FormatUserMention(user *pluginModel.ExternalUser) str
|
|||
func (r *xmppUserResolver) GetDisplayName(externalUserID string) string {
|
||||
// For XMPP JIDs, extract the local part or resource as display name
|
||||
// Format: user@domain/resource -> use resource or user
|
||||
if len(externalUserID) == 0 {
|
||||
if externalUserID == "" {
|
||||
return "Unknown User"
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue