mirror of
https://github.com/cheveguerra/whatsapp-web.js.git
synced 2026-04-20 20:49:14 +00:00
ESLint has dyslexia so spacing is important
This commit is contained in:
@@ -367,31 +367,31 @@ exports.LoadUtils = () => {
|
|||||||
|
|
||||||
returnObject.buttons.add(
|
returnObject.buttons.add(
|
||||||
returnObject.hydratedButtons.map((button, index) => {
|
returnObject.hydratedButtons.map((button, index) => {
|
||||||
const i = `${null != button.index ? button.index : index}`;
|
const i = `${null != button.index ? button.index : index}`;
|
||||||
|
|
||||||
if (button.urlButton) {
|
if (button.urlButton) {
|
||||||
return new window.Store.TemplateButtonModel({
|
return new window.Store.TemplateButtonModel({
|
||||||
id: i,
|
id: i,
|
||||||
displayText: button.urlButton?.displayText,
|
displayText: button.urlButton?.displayText,
|
||||||
url: button.urlButton?.url,
|
url: button.urlButton?.url,
|
||||||
subtype: 'url',
|
subtype: 'url',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (button.callButton) {
|
if (button.callButton) {
|
||||||
return new window.Store.TemplateButtonModel({
|
return new window.Store.TemplateButtonModel({
|
||||||
id: i,
|
id: i,
|
||||||
displayText: button.callButton.displayText,
|
displayText: button.callButton.displayText,
|
||||||
phoneNumber: button.callButton.phoneNumber,
|
phoneNumber: button.callButton.phoneNumber,
|
||||||
subtype: 'call',
|
subtype: 'call',
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
return new window.Store.TemplateButtonModel({
|
return new window.Store.TemplateButtonModel({
|
||||||
id: i,
|
id: i,
|
||||||
displayText: button.quickReplyButton?.displayText,
|
displayText: button.quickReplyButton?.displayText,
|
||||||
selectionId: button.quickReplyButton?.id,
|
selectionId: button.quickReplyButton?.id,
|
||||||
subtype: 'quick_reply',
|
subtype: 'quick_reply',
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user