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

Feature/chat room isolation and fixes #6

Merged
merged 6 commits into from
Aug 19, 2020

Conversation

Sirbuland
Copy link
Collaborator

No description provided.

Copy link
Contributor

@HamptonMakes HamptonMakes left a comment

Choose a reason for hiding this comment

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

I mean, total lack of tests ain't great... but we're getting there! Approved!

@@ -13,7 +13,7 @@ def create
end

ActionCable.server.broadcast(
"chat_room",
"live_video_#{message.video_id}",
{text: message.body, user_name: current_user.full_name, video_id: message.video_id},
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you need to pass the video id here as a param also? It is already going to the channel for it

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I'll take it and will try to eliminate it. Actually for video_id, we are using it inside received(data) of consumer.subscriptions.create. Another way is to take roomId from params like this JSON.parse(this.identifier).roomId

${data.text}
</label>
</div>
`
Copy link
Contributor

Choose a reason for hiding this comment

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

It's like low-complexity JSX 😀

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yeah without render function.... 😄

@@ -1,3 +1,7 @@
@import '../vars';
@import '../utils/text_style';
@import '../utils/grid_style';
Copy link
Contributor

Choose a reason for hiding this comment

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

I'll show you in a refactor PR how to use these with modules!

@HamptonMakes HamptonMakes merged commit 4a9de6a into main Aug 19, 2020
@HamptonMakes HamptonMakes deleted the feature/chat_room_isolation_and_fixes branch September 23, 2020 13:34
@jasonfb jasonfb mentioned this pull request Dec 16, 2020
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

Successfully merging this pull request may close these issues.

2 participants