Skip to content

Comments

feat(settings): support TMoe entry on Telegram 12.4#101

Merged
cinit merged 1 commit intocinit:mainfrom
chsbuffer:fix
Feb 21, 2026
Merged

feat(settings): support TMoe entry on Telegram 12.4#101
cinit merged 1 commit intocinit:mainfrom
chsbuffer:fix

Conversation

@chsbuffer
Copy link

Telegram 12.4 migrated the settings UI from ProfileActivity rows to SettingsActivity (UniversalRecyclerView/UItem), which broke the old TMoe settings injection path.

This change adds a dual-path hook strategy:

  • keep the existing ProfileActivity row hook for older Telegram versions
  • add SettingsActivity hooks for 12.4+:
    • inject a TMoe settings item before the Language item in fillItems()
    • handle TMoe item click in onClick() and open SettingsFragment
  • add duplicate-insertion guards and safe fallback when SettingsActivity is absent

…acy compatibility

Telegram 12.4 migrated the settings UI from ProfileActivity rows to SettingsActivity
(UniversalRecyclerView/UItem), which broke the old TMoe settings injection path.

This change adds a dual-path hook strategy:
- keep the existing ProfileActivity row hook for older Telegram versions
- add SettingsActivity hooks for 12.4+:
  - inject a TMoe settings item before the Language item in fillItems()
  - handle TMoe item click in onClick() and open SettingsFragment
- add duplicate-insertion guards and safe fallback when SettingsActivity is absent
@cinit cinit merged commit 7baf2b5 into cinit:main Feb 21, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants