fix listMessage (#1070)

* fix listMessage

* Default listType

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>

* use the ListMessageListType enum

* use the ListMessageListType enum

Co-authored-by: Rajeh Taher <rajeh@reforward.dev>
This commit is contained in:
Pokoke
2021-12-31 17:15:35 +07:00
committed by GitHub
parent b191e1b23a
commit 3ad02f0317
2 changed files with 3 additions and 2 deletions

View File

@@ -177,4 +177,4 @@ export type WAMessageUpdate = { update: Partial<WAMessage>, key: proto.IMessageK
export type WAMessageCursor = { before: WAMessageKey | undefined } | { after: WAMessageKey | undefined }
export type MessageInfoUpdate = { key: proto.IMessageKey, update: Partial<MessageInfo> }
export type MessageInfoUpdate = { key: proto.IMessageKey, update: Partial<MessageInfo> }

View File

@@ -331,7 +331,8 @@ export const generateWAMessageContent = async(
buttonText: message.buttonText,
title: message.title,
footerText: message.footer,
description: message.text
description: message.text,
listType: proto.ListMessage.ListMessageListType['SINGLE_SELECT']
}
m = { listMessage }