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

CU-bcqgq6 Feature/design chat area #9

Merged
merged 16 commits into from
Aug 25, 2020
Merged

Conversation

Sirbuland
Copy link
Collaborator

No description provided.

yarn.lock Outdated Show resolved Hide resolved
Gemfile.lock Outdated Show resolved Hide resolved
app/views/shared/_chat.html.haml Outdated Show resolved Hide resolved
app/views/shared/_chat.html.haml Outdated Show resolved Hide resolved
app/models/user.rb Outdated Show resolved Hide resolved
@HamptonMakes HamptonMakes changed the title Feature/design chat area CU-bcqgq6 Feature/design chat area Aug 25, 2020
@HamptonMakes
Copy link
Contributor

Task linked: CU-bcqgq6 Basic Chat

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.

Approved! One change I'd make is noted in the comments.

@@ -1,7 +1,7 @@
# frozen_string_literal: true

class ChatMessagesController < ApplicationController
before_action :messages_params
before_action :messages_params, only: [:create]
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

ActionCable.server.broadcast(
"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.

👍


module ChatHelper
def current_user_id
user_signed_in? ? current_user.id : ""
Copy link
Contributor

Choose a reason for hiding this comment

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

seems like we should return something falsey here, right? Maybe even false itself?

user_name: user.username.capitalize,
},
)
end
Copy link
Contributor

Choose a reason for hiding this comment

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

👍 much better place for this

@HamptonMakes HamptonMakes merged commit 9d26624 into main Aug 25, 2020
@HamptonMakes HamptonMakes deleted the feature/design_chat_area branch August 25, 2020 13:48
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