Skip to content

Refactor message formatting#1771

Merged
SessionHero01 merged 2 commits intodevfrom
refactor-notification
Dec 11, 2025
Merged

Refactor message formatting#1771
SessionHero01 merged 2 commits intodevfrom
refactor-notification

Conversation

@SessionHero01
Copy link
Collaborator

This PR:

  1. Moves the logic inside DisplayRecord/MessageRecord to a proper MessageFormatter: since some logic requires other dependencies, it's better this way.
  2. Consolidates the logic from UpdateMessageBuilder

if (msgCount > 1) continue
}

var body = messageFormatter.get().formatMessageBody(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Does this need to be calculated here if it is only used further down?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Moved further down

@SessionHero01 SessionHero01 merged commit ab8b223 into dev Dec 11, 2025
4 checks passed
@SessionHero01 SessionHero01 deleted the refactor-notification branch December 11, 2025 00:41
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.

2 participants