Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
3.57k stars 2.91k forks source link

[CP Staging] Fixes unread indicator #52919

Closed rlinoz closed 10 hours ago

rlinoz commented 13 hours ago

Explanation of Change

Updates sortedVisibleReportActions to depend on canUserPerformWriteAction instead of report, since report may be updated more often, which causes sortedVisibleReportActions to be computed more times than it has to.

Fixed Issues

$ https://github.com/Expensify/App/issues/52891 PROPOSAL:

Tests

  1. User A scroll to the top of the chat with user B
  2. User B sends a message
  3. User A hit the New message green button
  4. Chat is scrolled to the bottom
  5. Verify the unread indicator shows up

Offline tests

QA Steps

  1. User A scroll to the top of the chat with user B
  2. User B sends a message
  3. User A hit the New message green button
  4. Chat is scrolled to the bottom
  5. Verify the unread indicator shows up

PR Author Checklist

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari https://github.com/user-attachments/assets/13ecf809-9e62-4596-b6da-e5b19e2a6009
MacOS: Desktop
melvin-bot[bot] commented 13 hours ago

@rayane-djouah Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

rayane-djouah commented 13 hours ago

Reviewer Checklist

Screenshots/Videos

Android: Native https://github.com/user-attachments/assets/f27f38cd-c55d-4d5f-b7b0-f25cffb2a7db
Android: mWeb Chrome https://github.com/user-attachments/assets/449147cd-81f0-4d16-b436-1bd7fa010d80
iOS: Native https://github.com/user-attachments/assets/6f78288c-5adb-4b2e-bb78-c69ecd102218
iOS: mWeb Safari https://github.com/user-attachments/assets/f59bbfc1-9404-4d41-a5a9-3b4e037dab5e
MacOS: Chrome / Safari https://github.com/user-attachments/assets/0218f573-d29d-4fd6-9899-06a379bca0aa
MacOS: Desktop https://github.com/user-attachments/assets/a56525c2-5bc3-43db-8a1e-66bed0c1fe70
melvin-bot[bot] commented 11 hours ago

@deetergp Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

OSBotify commented 10 hours ago

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

github-actions[bot] commented 8 hours ago

🚀 Cherry-picked to staging by https://github.com/chiragsalian in version: 9.0.65-4 🚀

platform result
🤖 android 🤖 success ✅
🖥 desktop 🖥 success ✅
🍎 iOS 🍎 success ✅
🕸 web 🕸 success ✅
🤖🔄 android HybridApp 🤖🔄 success ✅
🍎🔄 iOS HybridApp 🍎🔄 success ✅

@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes.