Skip to content

Commit

Permalink
pass the session
Browse files Browse the repository at this point in the history
  • Loading branch information
rockwellll committed Jan 15, 2025
1 parent 8f5c867 commit d045f05
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/hellotext.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion lib/api/webchat/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ var WebchatMessagesAPI = /*#__PURE__*/function () {
value: function markAsSeen() {
fetch(this.url + '/seen', {
method: 'PATCH',
headers: _hellotext.default.headers
headers: _hellotext.default.headers,
body: JSON.stringify({
session: _hellotext.default.session
})
});
}
}, {
Expand Down
3 changes: 3 additions & 0 deletions src/api/webchat/messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@ class WebchatMessagesAPI {
fetch(this.url + '/seen', {
method: 'PATCH',
headers: Hellotext.headers,
body: JSON.stringify({
session: Hellotext.session
})
})
}

Expand Down

0 comments on commit d045f05

Please sign in to comment.