mirror of
https://github.com/beatriceo/polyglot.git
synced 2025-10-25 18:52:11 +00:00
fixed bug where translations were also broadcasted to other client and fixed bug where the same original and target language caused a 500 error
This commit is contained in:
@@ -29,7 +29,8 @@ class PagesController < ApplicationController
|
||||
translation.text.gsub!("'", "'")
|
||||
ActionCable.server.broadcast "chat_room_#{params[:chat_room_id]}", {
|
||||
translation: translation,
|
||||
input: params[:input]
|
||||
input: params[:input],
|
||||
userId: current_user.id
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user