Skip to content

Commit

Permalink
fix: Fixed sendSeen call
Browse files Browse the repository at this point in the history
  • Loading branch information
edgardmessias committed Dec 15, 2020
1 parent 34b3879 commit e2c0026
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/wapi/functions/send-seen.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ export async function sendSeen(id, done) {
var chat = window.WAPI.getChat(id);
if (chat !== undefined) {
await Store.ReadSeen.sendSeen(chat, false);
done(true);
done && done(true);
return true;
}
done(false);
done && done(false);
return false;
}

0 comments on commit e2c0026

Please sign in to comment.