Forum Discussion

Gursimrat's avatar
Gursimrat
Leader
12 years ago

Changing the icon of a new message

On what basis do I change the icon of a new message? should it be on following condition

 

/restapi/vc/threads/id/5055/messages/unread/count 

 

when unread_msg.value > 0

 

or any other way? 

 

  • I'm assuming you're trying to display a list of threads and for each thread you want to have an icon that shows the read/unread status of the thread (i.e. whether there are any unread replies). In that case, the approach you proposed looks good and is probably what I would use as well if I were creating the component.

2 Replies

  • AdamN's avatar
    AdamN
    Khoros Oracle
    12 years ago

    I'm assuming you're trying to display a list of threads and for each thread you want to have an icon that shows the read/unread status of the thread (i.e. whether there are any unread replies). In that case, the approach you proposed looks good and is probably what I would use as well if I were creating the component.