stream-chat-js
stream-chat-js copied to clipboard
Channel `updated_at` property not updated live
Channel object returned from queryChannels API contains a channel.data.updated_at property but this value is not updated live on sending new message to the channel for example.
I would expect either this value to be reactive or another one exposed in channel.state.updated_at (for example) that is reactive (similarly to existing channel.state.last_message_at).
Some additional justification:
The queryChannels API supports the updated_at sort parameter. So it's possible to sort channels by it initially but it's not possible to update channels order at runtime without re-querying all channels.
(I suppose setting up a channel.updated event might help here somewhat but that feels overkill for this purpose and just providing that value in the channel state would IMO make a lot of sense)