feat: send typing in chat (#87)

Co-authored-by: Pedro S. Lopez <pedroslopez@me.com>
This commit is contained in:
Anderson de Oliveira Machado 2020-02-29 14:55:27 -03:00 • committed by GitHub
commit d35f101fac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -255,6 +255,12 @@ exports.LoadUtils = () => {
}
return false;
};
window.WWebJS.typing = async (chatId) => {
await window.Store.Wap.sendChatstateComposing(chatId);
return true;
};
};
exports.MarkAllRead = () => {
@ -272,4 +278,4 @@ exports.MarkAllRead = () => {
window.Store.Wap.sendConversationSeen(chat.id, chat.getLastMsgKeyForAction(), chat.unreadCount - chat.pendingSeenCount);
}
}
};
};