Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ac): cache ac unread count and hasUnread in the view #16152

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

jrainville
Copy link
Member

Fixes #16023

Caches the values of the number of notifications and hasUnseen in the view so that we access status-go only when there is an update or on app start. Also, uses the response value from user actions in the AC to retrieve the hasUnseen value directly instead of re-fetching. Finally, fixes an issue where marking notifs as read/unread wouldn't update the count

ac-count.webm

Fixes #16023

Caches the values of the number of notifications and hasUnseen in the view so that we access status-go only when there is an update or on app start.
Also, uses the response value from user actions in the AC to retrieve the hasUnseen value directly instead of re-fetching.
Finally, fixes an issue where marking notifs as read/unread wouldn't update the count
@caybro
Copy link
Member

caybro commented Aug 19, 2024

@jrainville dunno what's wrong here but the video is just black screen with the mouse pointer :)

@jrainville
Copy link
Member Author

@jrainville
Copy link
Member Author

Welp, no videos for today, my screen recording software decided to not work anymore.

Trust me it works lol.

I was showing marking as read, unread and all as read and the count and red dot updating

@status-im-auto
Copy link
Member

status-im-auto commented Aug 19, 2024

Jenkins Builds

Commit #️⃣ Finished (UTC) Duration Platform Result
✔️ 639e586 #1 2024-08-19 20:59:15 ~6 min macos/aarch64 🍎dmg
✔️ 639e586 #1 2024-08-19 20:59:15 ~6 min tests/nim 📄log
✔️ 639e586 #1 2024-08-19 21:03:57 ~11 min macos/x86_64 🍎dmg
✔️ 639e586 #1 2024-08-19 21:05:43 ~13 min tests/ui 📄log
✔️ 639e586 #1 2024-08-19 21:06:43 ~14 min linux-nix/x86_64 📦tgz
✔️ 639e586 #1 2024-08-19 21:10:13 ~17 min linux/x86_64 📦tgz
✔️ 639e586 #1 2024-08-19 21:18:09 ~25 min windows/x86_64 💿exe

@jrainville
Copy link
Member Author

Reminder to review @igor-sirotin

@jrainville jrainville merged commit dea975c into master Aug 22, 2024
9 checks passed
@jrainville jrainville deleted the fix/activity-center-count-fetch branch August 22, 2024 19:29
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.

Refactor activity center count fetching
5 participants