Skip to content

Commit

Permalink
fix: Fixed message id return for files message (#419)
Browse files Browse the repository at this point in the history
* fix: Correção ao obter id ao enviar mensagens de midia

Co-authored-by: claudiorodrigozh <claudio@evocorp.com.br>
  • Loading branch information
claudiozh and claudio-evocorp committed Aug 11, 2021
1 parent 6c419c0 commit e61a605
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/wapi/functions/get-chat-by-id.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
* along with WPPConnect. If not, see <https://www.gnu.org/licenses/>.
*/

export function getChatById(id, done) {
let found = WAPI.getChat(id);
export async function getChatById(id, done) {
let found = await WAPI.getChat(id);
if (found) {
found = WAPI._serializeChatObj(found);
} else {
Expand Down

0 comments on commit e61a605

Please sign in to comment.