Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
sarfrazonsupport committed Jul 24, 2018
1 parent 895ec06 commit 282bf54
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chat.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ process.on("unhandledRejection", (reason, p) => {
if (config.read_receipts) {
last_sent_message_interval = setInterval(function () {
isLastMessageRead(user, message);
}, (config.check_message_interval * 1000));
}, (config.check_message_interval));
}

}
Expand Down Expand Up @@ -384,8 +384,8 @@ process.on("unhandledRejection", (reason, p) => {
}
}

setInterval(readLastOtherPersonMessage, (config.check_message_interval * 1000));
setInterval(checkNewMessagesAllUsers, (config.check_message_interval * 1000));
setInterval(readLastOtherPersonMessage, (config.check_message_interval));
setInterval(checkNewMessagesAllUsers, (config.check_message_interval));

} catch (err) {
logger.warn(err);
Expand Down

0 comments on commit 282bf54

Please sign in to comment.