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

Iterate on notification count #2265

Merged
merged 3 commits into from
Jan 23, 2024
Merged

Iterate on notification count #2265

merged 3 commits into from
Jan 23, 2024

Conversation

bmarty
Copy link
Member

@bmarty bmarty commented Jan 19, 2024

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

Content

Use numUnreadMentions and numUnreadMessages from the SDK in replacement for notificationCount.
The rules for the badges are in this issue: #2079.

I did not repro the issue described here: #2130 (review) 🎉 . But maybe @jmartinesp can double check 🙏 .

Motivation and context

Closes (again) #2079
Closes #1450

Screenshots / GIFs

Tests

  • Observe the room list badge and check that behavior is correct when new messages with or without mention are received, with different notification room settings.

Tested devices

  • Physical
  • Emulator
  • OS version(s):

Checklist

@bmarty bmarty requested a review from a team as a code owner January 19, 2024 17:13
@bmarty bmarty requested review from ganfra and removed request for a team January 19, 2024 17:13
@bmarty bmarty added the Record-Screenshots Runs the 'Record Screenshots' CI job and adds a commit with any new screenshots found. label Jan 19, 2024
@github-actions github-actions bot removed the Record-Screenshots Runs the 'Record Screenshots' CI job and adds a commit with any new screenshots found. label Jan 19, 2024
Copy link
Contributor

github-actions bot commented Jan 19, 2024

📱 Scan the QR code below to install the build (arm64 only) for this PR.
QR code
If you can't scan the QR code you can install the build via this link: https://i.diawi.com/EKm9F1

Copy link

codecov bot commented Jan 19, 2024

Codecov Report

Attention: 6 lines in your changes are missing coverage. Please review.

Comparison is base (bee56c8) 70.05% compared to head (958e97f) 70.11%.
Report is 3 commits behind head on develop.

Files Patch % Lines
...eatures/roomlist/impl/components/RoomSummaryRow.kt 88.37% 1 Missing and 4 partials ⚠️
...eatures/roomlist/impl/model/RoomListRoomSummary.kt 85.71% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #2265      +/-   ##
===========================================
+ Coverage    70.05%   70.11%   +0.05%     
===========================================
  Files         1335     1335              
  Lines        32684    32758      +74     
  Branches      6793     6807      +14     
===========================================
+ Hits         22896    22967      +71     
- Misses        6512     6513       +1     
- Partials      3276     3278       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Base automatically changed from feature/bma/roomListBadge to develop January 22, 2024 09:17
@bmarty bmarty mentioned this pull request Jan 22, 2024
14 tasks
@bmarty bmarty force-pushed the bma/notificationCount branch from 821ea66 to dd12071 Compare January 22, 2024 14:49
@bmarty bmarty added the Run-Maestro Starts a Maestro Cloud session to run integration tests label Jan 22, 2024
@github-actions github-actions bot removed the Run-Maestro Starts a Maestro Cloud session to run integration tests label Jan 22, 2024
Copy link
Member

@ganfra ganfra left a comment

Choose a reason for hiding this comment

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

One small remark otherwise LGTM

@@ -35,3 +36,13 @@ data class RoomListRoomSummary(
val hasRoomCall: Boolean,
val isDm: Boolean,
)

fun RoomListRoomSummary.isTimestampHighlighted(): Boolean {
Copy link
Member

Choose a reason for hiding this comment

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

Makes it a computed val instead

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@bmarty bmarty merged commit bd5ff23 into develop Jan 23, 2024
15 checks passed
@bmarty bmarty deleted the bma/notificationCount branch January 23, 2024 11:13
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.

Mentions: Display a special badge icon in the room list for room where you have been mentioned
2 participants