Skip to content

connector: allow disabling contact list fetching#1069

Open
nikolya-prodigy wants to merge 1 commit intomautrix:mainfrom
nikolya-prodigy:pr/contact-list-toggle
Open

connector: allow disabling contact list fetching#1069
nikolya-prodigy wants to merge 1 commit intomautrix:mainfrom
nikolya-prodigy:pr/contact-list-toggle

Conversation

@nikolya-prodigy
Copy link
Copy Markdown

Summary

Adds a contact_list.enabled configuration option for the Telegram connector.

When disabled, the bridge:

  • stops advertising contact-list support in provisioning capabilities
  • rejects GetContactList calls with M_FORBIDDEN

The default is unchanged: contact list fetching remains enabled when the option is omitted.

Why

Fetching Telegram contacts can create/update Matrix ghost users for many contacts. Some homeserver admins want identifier lookup and normal bridging, but do not want clients or provisioning API users to import their full Telegram contact list.

Testing

  • go test ./pkg/connector/...

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.

1 participant