You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Utilize Message Read Status for Message Icon Badge
Feature Description:
With the read status now implemented, we could now utilize the read status from Messages for something like an icon badge to indicate there are unread messages.
Use Case:
See above.
Proposed Solution:
Given that read status would be utilizing the value true (or 1) for read, we could have a badge appear when number of message !== total sum of read status true as one potential solution.
Another solution to this would be to utilize the false state (or 0) and have the badge appear as long as there's a read status that's false from the list of messages. We could use utility functions like .every() or .some() for this purpose depending on the type of logic the developer wish to employ.
Additional Context:
Please provide any other information that might be helpful.
The text was updated successfully, but these errors were encountered:
leekahung
changed the title
Utilize Message Read Status for Message Icon Badge
Feature: Utilize Message Read Status for Message Icon Badge
Sep 15, 2023
Utilize Message Read Status for Message Icon Badge
Feature Description:
With the read status now implemented, we could now utilize the read status from Messages for something like an icon badge to indicate there are unread messages.
Use Case:
See above.
Proposed Solution:
Given that read status would be utilizing the value
true
(or1
) forread
, we could have a badge appear when number of message !== total sum of read statustrue
as one potential solution.Another solution to this would be to utilize the
false
state (or0
) and have the badge appear as long as there's a read status that's false from the list of messages. We could use utility functions like.every()
or.some()
for this purpose depending on the type of logic the developer wish to employ.Additional Context:
Please provide any other information that might be helpful.
The text was updated successfully, but these errors were encountered: