Skip to content

Commit

Permalink
fix: sendContactVcard
Browse files Browse the repository at this point in the history
  • Loading branch information
jonalan7 committed Mar 2, 2021
1 parent 691c3af commit 448b686
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/wapi/functions/send-contact-vcard-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export async function sendContactVcardList(chatId, contacts) {
var vcard = cont.map(async (e) => {
return await window.Store.Vcard.vcardFromContactModel(e);
});
var newId = window.WAPI.getNewMessageId(chatId);
var newId = await window.WAPI.getNewMessageId(chatId);
var Vcards = await Promise.all(vcard);
var extend = {
ack: 0,
Expand Down
2 changes: 1 addition & 1 deletion src/lib/wapi/functions/send-contact-vcard.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export async function sendContactVcard(chatId, contact, name) {
var chat = await WAPI.sendExist(chatId);
var cont = await WAPI.sendExist(contact);
if (chat.id && cont.id) {
var newId = window.WAPI.getNewMessageId(chat.id);
var newId = await window.WAPI.getNewMessageId(chat.id);
var tempMsg = Object.create(
Store.Msg.models.filter((msg) => msg.__x_isSentByMe && !msg.quotedMsg)[0]
);
Expand Down

1 comment on commit 448b686

@jonalan7
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.