Skip to content

Commit

Permalink
Bot intro message should be translated based on passed department
Browse files Browse the repository at this point in the history
  • Loading branch information
remdex committed Oct 14, 2022
1 parent 10487e8 commit 2d46ad8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lhc_web/modules/lhwidgetrestapi/getinvitation.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,9 @@
$chat->gbot_id = $bot->id;
$chat->additional_data_array = $onlineUser->online_attr_array;
$chat->chat_variables_array = $onlineUser->chat_variables_array;

if ($onlineUser->dep_id > 0) {
$chat->dep_id = $onlineUser->dep_id;
}
$tpl->set('chat',$chat);
$tpl->set('react',true);
$tpl->set('no_wrap_intro',true);
Expand Down
3 changes: 3 additions & 0 deletions lhc_web/modules/lhwidgetrestapi/onlinesettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,9 @@ function renderMessage($paramsRender, $theme) {
$chat->gbot_id = $bot->id;
$chat->additional_data_array = $onlineUser->online_attr_array;
$chat->chat_variables_array = $onlineUser->chat_variables_array;
if ($onlineUser->dep_id > 0) {
$chat->dep_id = $onlineUser->dep_id;
}
$tpl->set('chat',$chat);
}
}
Expand Down

0 comments on commit 2d46ad8

Please sign in to comment.