Skip to content

Refresh Frogram branding and topic read state - #7

Merged
AbdulKus merged 5 commits into
mainfrom
fix/frogram-icon-topic-read-state-check
Jul 25, 2026
Merged

Refresh Frogram branding and topic read state#7
AbdulKus merged 5 commits into
mainfrom
fix/frogram-icon-topic-read-state-check

Conversation

@AbdulKus

Copy link
Copy Markdown
Owner

Обновляет launcher-иконки Frogram X для всех DPI и adaptive icon, переписывает README и исправляет открытие/прочтение истории форум-топиков отдельно от общего чата.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: edd2c43fe6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +3360 to +3361
if (topicId != null && topicId.getConstructor() == TdApi.MessageTopicForum.CONSTRUCTOR) {
return canGoUnread(chat, null, forumTopic) ? HIGHLIGHT_MODE_UNREAD : HIGHLIGHT_MODE_NONE;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Consult saved anchors for forum topics

When a forum topic has no unread messages but has a saved non-bottom scroll position, this unconditional return produces HIGHLIGHT_MODE_NONE before the topic-specific SavedMessageId is read below. Reopening the topic therefore jumps to the latest messages instead of restoring the user's position, even though saveScrollPosition() persists positions under the topic ID.

Useful? React with 👍 / 👎.


if (previewSearchSender == null) {
manager.openChat(chat, messageThread, messageTopicId, previewSearchFilter, this, areScheduled, !inPreviewMode && !isInForceTouchMode());
manager.openChat(chat, messageThread, messageTopicId, activeForumTopic, previewSearchFilter, this, areScheduled, !inPreviewMode && !isInForceTouchMode());

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Wait for topic state before loading its history

When a forum topic is opened through Arguments, such as a restored default topic or deep link, updateTopicBar() has only started the asynchronous GetForumTopic request, so activeForumTopic is still null here. The initial history is consequently processed with the chat-wide read IDs and unread count; the request callback only replaces the loader metadata and counters and never reloads or reprocesses that chunk, leaving its unread divider based on the whole chat rather than the topic.

Useful? React with 👍 / 👎.

Comment on lines +8763 to +8765
} else if (activeForumTopic != null && getChatId() == chatId && Td.matchesTopic(topicId, messageTopicId)) {
activeForumTopic.lastReadInboxMessageId = lastReadInboxMessageId;
activeForumTopic.unreadCount = remainingUnreadCount;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Wire forum reads to a reachable update path

This forum-topic branch cannot receive the updates it is intended to handle: onMessageThreadReadInbox() is emitted only by ThreadInfo, while this controller subscribes to a ThreadInfo only when messageThread is non-null, whereas active forum topics use messageTopicId with messageThread null. Partial topic reads therefore never apply remainingUnreadCount; onForumTopicUpdated() only clears the count after the last message is read, so the unread badge remains stale during partial reading.

Useful? React with 👍 / 👎.

@AbdulKus
AbdulKus merged commit f6931f0 into main Jul 25, 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.

1 participant