Skip to content

fix: update reaction background color with profile color - WPB-21050#4253

Open
SyamalaHari wants to merge 4 commits intorelease/cycle-4.15from
fix/WPB-21050-Update-reaction-background-color-with-profile-color
Open

fix: update reaction background color with profile color - WPB-21050#4253
SyamalaHari wants to merge 4 commits intorelease/cycle-4.15from
fix/WPB-21050-Update-reaction-background-color-with-profile-color

Conversation

@SyamalaHari
Copy link
Collaborator

@SyamalaHari SyamalaHari commented Feb 3, 2026

BugWPB-21050 [iOS] Reaction background color remains blue doesn't change with profile color.

Issue

Reaction background colour remains blue doesn't change with profile color

Now the background color is setup as profilecolor.withAlphaComponent(0.5) of self user

Background colour will update immediately when user profile colour is changed from web client by using AccentColorChangeHandler

Testing

Add a reaction to a message
Observe background of the reaction
Update the profile colour and observe reaction colours


Checklist

  • Title contains a reference JIRA issue number like [WPB-XXX].
  • Description is filled and free of optional paragraphs.
  • Adds/updates automated tests.

UI accessibility checklist

If your PR includes UI changes, please utilize this checklist:

  • Make sure you use the API for UI elements that support large fonts.
  • All colors are taken from WireDesign.ColorTheme or constructed using WireDesign.BaseColorPalette.
  • New UI elements have Accessibility strings for VoiceOver.

@SyamalaHari SyamalaHari requested review from netbe and samwyndham and removed request for netbe February 3, 2026 12:56
@github-actions
Copy link
Contributor

github-actions bot commented Feb 3, 2026

Test Results

0 tests   0 ✅  0s ⏱️
0 suites  0 💤
0 files    0 ❌

Results for commit cccbbee.

♻️ This comment has been updated with latest results.

Summary: workflow run #21753406464
Allure report (download zip): html-report-27645-fix_WPB-21050-Update-reaction-background-color-with-profile-color

@datadog-wireapp
Copy link

datadog-wireapp bot commented Feb 3, 2026

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 115f397 | Docs | Was this helpful? Give us feedback!

Copy link
Contributor

@samwyndham samwyndham left a comment

Choose a reason for hiding this comment

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

Nice work. I also tested on my device and behavior looks good.

Copy link
Collaborator

@netbe netbe left a comment

Choose a reason for hiding this comment

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

left some comments before approving

self.message = message
self.onToggle = onToggle
self.accentColor = message?.senderUser?.accentColor ?? .blue
self.accentColor = ZMUserSession.shared()?.selfUser.accentColor
Copy link
Collaborator

Choose a reason for hiding this comment

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

question: is it possible to pass the accentColor instead of using the shared instance?

Copy link
Collaborator Author

@SyamalaHari SyamalaHari Feb 6, 2026

Choose a reason for hiding this comment

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

We don't have accentColor. We need to pass userSession from top-level and get accentcolor

}

private func updateAppearance() {
accentColor = ZMUserSession.shared()?.selfUser.accentColor
Copy link
Collaborator

Choose a reason for hiding this comment

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

?question: can't you cast the userSession instead ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

MessageReactioncell doesn't have user session, we need to pass from top level. I will have a look

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 6, 2026

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