Closed bugnano closed 2 days ago
As discussed in https://talkjs.slack.com/archives/C02PH434FAT/p1731506065664239
The unreads property of the session adds unnecessary indirection.
unreads
This PR keeps the unreads property but marks it as deprecated, and adds a direct onUnreadsChange callback that handles unreads more directly and easily.
onUnreadsChange
As discussed in https://talkjs.slack.com/archives/C02PH434FAT/p1731506065664239
The
unreads
property of the session adds unnecessary indirection.This PR keeps the
unreads
property but marks it as deprecated, and adds a directonUnreadsChange
callback that handles unreads more directly and easily.