Skip to content

Commit

Permalink
Merge pull request #26 from adhikasp/unread_msg
Browse files Browse the repository at this point in the history
get_unread_message: Fix reading sent message as unread
  • Loading branch information
mukulhase authored Oct 22, 2017
2 parents 96c3678 + f387af6 commit a0fc101
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions webwhatsapi/js_scripts/get_unread_messages.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ var Chats = Store.Chat.models;
var Output = [];

function isChatMessage(message) {
if (message.__x_isSentByMe) {
return false;
}
if (message.__x_isNotification) {
return false;
}
Expand Down

0 comments on commit a0fc101

Please sign in to comment.