Skip to content

chatinfo,updates: sync archived dialogs as low priority - #1087

Open
davidjirovec wants to merge 1 commit into
mautrix:mainfrom
davidjirovec:codex/sync-telegram-archive-tag
Open

chatinfo,updates: sync archived dialogs as low priority#1087
davidjirovec wants to merge 1 commit into
mautrix:mainfrom
davidjirovec:codex/sync-telegram-archive-tag

Conversation

@davidjirovec

Copy link
Copy Markdown

Summary

  • map Telegram's archive folder (folder_id = 1) to Matrix m.lowpriority during dialog sync
  • handle updateFolderPeers so archive and unarchive changes update the room tag
  • preserve m.favourite precedence when an archived dialog is pinned
  • clear stale bridge-managed tags for dialogs that are neither pinned nor archived

This restores archive-tag behavior that existed in the legacy Python bridge and was discussed in #832. The Go connector currently only emits m.favourite for pinned dialogs and ignores updateFolderPeers.

Live archive changes continue to respect the bridge-wide tag_only_on_create setting. Deployments that set it to true will only apply the tag when a portal room is created.

Testing

  • go test ./pkg/connector
  • go vet ./pkg/connector
  • go test ./... (all completed packages passed; the executable package could not compile locally because the system olm/olm.h header is not installed)

Signed-off-by: David Jirovec <david.jirovec@gmail.com>
@davidjirovec
davidjirovec marked this pull request as ready for review August 5, 2026 18:40
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