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