Skip to content

Commit

Permalink
added name and email to bento chats (#4258)
Browse files Browse the repository at this point in the history
  • Loading branch information
saracarl authored Aug 2, 2024
1 parent 4b288a2 commit 461d25b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/views/shared/_bento_chat.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<script>
window.addEventListener("bento:ready", function () {
bento.showChat();
bento.showChat();
});

window.addEventListener("bentochat:ready", function () {
window.$bentoChat.setUser('<%= current_user.id%>', {
email: '<%= current_user.email %>',
name: "<%= current_user.display_name %>"
});
});
</script>

0 comments on commit 461d25b

Please sign in to comment.