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

Include user_auth_required in chat.js unfurl #336

Merged
merged 4 commits into from May 2, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/clients/web/facets/chat.js
Expand Up @@ -130,16 +130,18 @@ ChatFacet.prototype.update = function update(ts, channel, text, opts, optCb) {
* @param {?} ts - Timestamp of the message to be updated.
* @param {?} channel - Channel of the message to be updated.
* @param {string} unfurls - a map of URLs to structured message attachments
* @param {Object=} opts
* @param {?} opts.user_auth_required - Pass true to require user authorization.
* @param {function=} optCb Optional callback, if not using promises.
*/
ChatFacet.prototype.unfurl = function unfurl(ts, channel, unfurls, optCb) {
ChatFacet.prototype.unfurl = function unfurl(ts, channel, unfurls, opts, optCb) {
var requiredArgs = {
ts: ts,
channel: channel,
unfurls: unfurls
};

return this.makeAPICall('chat.unfurl', requiredArgs, {}, optCb);
return this.makeAPICall('chat.unfurl', requiredArgs, opts, optCb);
};

module.exports = ChatFacet;