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

Channel updated_at property not updated live #1139

Open
rchl opened this issue Jun 23, 2023 · 1 comment
Open

Channel updated_at property not updated live #1139

rchl opened this issue Jun 23, 2023 · 1 comment

Comments

@rchl
Copy link

rchl commented Jun 23, 2023

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).

@rchl
Copy link
Author

rchl commented Jun 23, 2023

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)

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

No branches or pull requests

1 participant