Skip to content

Feature/dm cache rework#2158

Merged
Tlaster merged 3 commits into
masterfrom
feature/dm-cache-rework
May 18, 2026
Merged

Feature/dm cache rework#2158
Tlaster merged 3 commits into
masterfrom
feature/dm-cache-rework

Conversation

@Tlaster
Copy link
Copy Markdown
Contributor

@Tlaster Tlaster commented May 18, 2026

No description provided.

Copy link
Copy Markdown

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

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: 2646df5130

ℹ️ 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".

messageKey = messageKey,
)
}.onSuccess {
database.messageDao().deleteMessage(messageKey)
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 Update denormalized DM room after deleting messages

When the deleted remote message is the current DbDirectMessageTimeline.content.lastMessage, this now removes only the DbMessageItem; the room list and room-info flows read the denormalized DbDirectMessageTimeline.content, not the message relation anymore, so they continue to display the deleted message until some later room-list refresh rewrites the timeline. Please also refresh or patch the affected timeline row when deleting a message.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown

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

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: 8d82c9385d

ℹ️ 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".

inMemoryBadgeCount.value = loader.loadBadgeCount()
},
cacheSource = {
inMemoryBadgeCount.filterNotNull()
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 Keep the DM badge in sync after marking a room read

When fetchNew() marks a conversation read, it clears the room's unread count in the database but the badge stream now only emits inMemoryBadgeCount, so observers keep showing the old total until someone explicitly refreshes the badge from the server. This regresses the inspected DM flows: Bluesky's badge used to be derived from the room timeline, and XQT's fetch-new path used to refresh the badge after marking read.

Useful? React with 👍 / 👎.

@Tlaster Tlaster merged commit 3ae8d3e into master May 18, 2026
8 checks passed
@Tlaster Tlaster deleted the feature/dm-cache-rework branch May 18, 2026 07:18
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