Skip to content

msgconv: preserve Slack user group mentions - #91

Open
0x-chad wants to merge 1 commit into
mautrix:mainfrom
0x-chad:fix/user-group-mentions
Open

msgconv: preserve Slack user group mentions#91
0x-chad wants to merge 1 commit into
mautrix:mainfrom
0x-chad:fix/user-group-mentions

Conversation

@0x-chad

@0x-chad 0x-chad commented Aug 2, 2026

Copy link
Copy Markdown

Summary

  • render labeled Slack <!subteam^ID|@handle> mentions as @handle
  • preserve unlabeled mrkdwn and rich-text user-group mentions as visible <!subteam^ID> fallbacks instead of dropping them
  • avoid API lookups, caching, new OAuth scopes, and reauthorization requirements

Slack commonly provides only the user-group ID, including in rich-text usergroup elements. Resolving those IDs to handles can be handled separately if desired; this PR is intentionally limited to lossless conversion.

Testing

  • go test -count=1 ./pkg/connector ./pkg/msgconv/...
  • go test -race -count=1 ./pkg/connector ./pkg/msgconv/...

Fixes #90

@0x-chad
0x-chad force-pushed the fix/user-group-mentions branch from b0e56c1 to a26a9aa Compare August 2, 2026 19:00
@0x-chad 0x-chad changed the title Resolve Slack user group mentions msgconv: render user group mentions Aug 2, 2026
@0x-chad
0x-chad force-pushed the fix/user-group-mentions branch from a26a9aa to 1e0384d Compare August 6, 2026 20:08
@0x-chad 0x-chad changed the title msgconv: render user group mentions msgconv: preserve Slack user group mentions Aug 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Slack user group mentions are removed from bridged messages

1 participant