Skip to content

regression: Status bar's color theme is incorrect - #5167

Merged
reinaldonetof merged 2 commits into
developfrom
regresison.status-bar
Aug 14, 2023
Merged

reinaldonetof merged 2 commits into
developfrom
regresison.status-bar

Conversation

@reinaldonetof

@reinaldonetof reinaldonetof commented Aug 9, 2023 •

Copy link
Copy Markdown
Contributor

Proposed changes

The PR #5132 fixed the issue #4889, however, it introduced a bug when the user opens the AttachmentView and the status bar kept the color of AttachmentView Status bar until re-render the status bar of a new view. So, this PR is intended to fix this regression and still fix the issue related. Now the approach was to remove the React.memo, and let the component render together with his father.

Issue(s)

How to test or reproduce

  • Open the AttachmentView with Android, the status bar color should be expected for each theme
  • Test the other PR's test case:

This error it's happening on the first open at my Samsung Galaxy A31. It's working properly with Xiaomi Redmi 9 and with iOS devices.

  • OS in light mode.
  • Open RocketChat => status bar text is light (but should be dark)
  • Change OS to dark mode via Quick Settings Tile
  • RocketChat status bar text is now light ✅
  • Change OS to light mode
  • RocketChat status bar text is now dark ✅
  • Close RocketChat and remove it from Recent Apps
  • Open RocketChat again
  • RocketChat status bar text is now light again (but should be dark)

Screenshots

Before

Screenrecorder-2023-08-09-11-25-55-516.mp4

After

Screenrecorder-2023-08-09-11-19-57-546.mp4

Test if the fix before still working

20230809_133119.mp4

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves a current function)
  • New feature (non-breaking change which adds functionality)
  • Documentation update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

Further comments

TC-886

@reinaldonetof reinaldonetof self-assigned this Aug 9, 2023
@reinaldonetof
reinaldonetof marked this pull request as ready for review August 9, 2023 16:38
@reinaldonetof reinaldonetof changed the title regression: attachment view is changing the color of status bar regression: Status bar's color theme is incorrect Aug 9, 2023
@reinaldonetof
reinaldonetof merged commit 0c8b2f5 into develop Aug 14, 2023
@reinaldonetof
reinaldonetof deleted the regresison.status-bar branch August 14, 2023 18:11
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