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

DEV: glimmerify chat-channel-row #19287

Merged
merged 4 commits into from Dec 2, 2022

Conversation

jjaffeux
Copy link
Contributor

@jjaffeux jjaffeux commented Dec 2, 2022

No description provided.

@github-actions github-actions bot added the chat PRs which include a change to Chat plugin label Dec 2, 2022
isDirectMessageRow &&
this.channel.chatable.users.length === 1 &&
this.channel.chatable.users[0].status
this.currentUser?.chat_channel_tracking_state?.[this.args.channel?.id]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

currentUser (and the rest of our models) haven't yet been converted to use @tracked, so I think we'll need to stick to .get here to ensure changes to currentUser trigger a recalculation of channelHasUnread

Copy link
Contributor Author

@jjaffeux jjaffeux Dec 2, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok 👍 wasnt sure about this indeed

@jjaffeux jjaffeux marked this pull request as ready for review December 2, 2022 15:53
@jjaffeux jjaffeux merged commit add6c67 into discourse:main Dec 2, 2022
@jjaffeux jjaffeux deleted the chat/glimmer-chat-channel-row branch December 2, 2022 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chat PRs which include a change to Chat plugin
2 participants