Skip to content

Route private-chat typing activities to their topic - #2412

Draft
axhl wants to merge 1 commit into
TelegramMessenger:masterfrom
axhl:fix/private-topic-typing
Draft

axhl wants to merge 1 commit into
TelegramMessenger:masterfrom
axhl:fix/private-topic-typing

Conversation

@axhl

@axhl axhl commented Oct 27, 2026

Copy link
Copy Markdown

Private bot topics can miss ordinary typing indicators. updateUserTyping reads topMsgId, but stores non-draft activity in the global activity space. A topic's chat controller subscribes to .thread(threadId), so it does not receive that activity.

Use the supplied thread ID for ordinary private-chat activity, matching the existing updateChannelUserTyping branch. Keep voice-chat activity in .voiceChat and unthreaded activity in .global. Draft and stop-draft handling is unchanged.

Source review confirms that the two routes now select the same activity category and that the rest of the file is unchanged. The diff passes git diff --check.

Draft pending an iOS build and device or simulator verification. This Linux environment has no Swift toolchain, and the configured remote Mac is unavailable. Required UI checks: typing appears in the addressed bot topic, does not appear in another topic, clears on completion, and still appears in an ordinary private chat. This patch has not been verified in an installed iPhone app.

Use the supplied top message ID when selecting the activity space for ordinary private-chat typing. Topic views subscribe to that thread space, so storing the update globally leaves them without typing activity. Match the existing channel typing route while preserving the voice-chat and no-thread branches.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant