mattermost-plugin-bridge-xmpp/server/bridge
Felipe Martin 8e9d87b176
feat: implement remote user creation for Mattermost bridge
Replace bot-based message posting with remote user creation system:

- Add getOrCreateRemoteUser() method to create/retrieve remote users on-demand
- Use plugin API to find existing users by username/email before creating new ones
- Generate usernames with bridge prefix and emails with bridge.{bridgeID} domain
- Set RemoteId field to BridgeMessage.SourceRemoteID for proper loop prevention
- Cache user mappings to avoid repeated API calls
- Post messages directly as remote users instead of bot with metadata
- Remove unused message formatting since messages are posted as actual users
- Log errors for failed user creation without complex retry logic

This enables authentic user attribution in Mattermost channels while maintaining
existing loop prevention mechanisms through the RemoteId field.

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-06 12:29:55 +02:00
..
mattermost feat: implement remote user creation for Mattermost bridge 2025-08-06 12:29:55 +02:00
xmpp chore: register bridge id 2025-08-06 08:36:51 +02:00
manager.go chore: register bridge id 2025-08-06 08:36:51 +02:00
messagebus.go refactor: standardize bridge-agnostic terminology and remove unused kvstore functions 2025-08-05 12:33:19 +02:00
user.go feat: implement comprehensive bridge-agnostic user management system 2025-08-04 17:50:44 +02:00