Skip to content

Commit

Permalink
Fix notifications (again).
Browse files Browse the repository at this point in the history
  • Loading branch information
jq-rs committed Oct 28, 2021
1 parent a49fe8e commit 1e14c06
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions js/mlestalk.js
Original file line number Diff line number Diff line change
Expand Up @@ -998,14 +998,15 @@ async function processData(uid, channel, msgTimestamp,
}

const notifyTimestamp = parseInt(msgTimestamp / 1000 / 60); //one notify per minute
if ((gActiveChannel != channel || gIsPause) && uid != gMyName[channel] && isFull &&
gIdNotifyTs[channel][uid] < notifyTimestamp)
if (uid != gMyName[channel] && isFull && gIdNotifyTs[channel][uid] < notifyTimestamp)
{
if (gWillNotify && gCanNotify) {
if (true == isImage) {
message = gImageStr;
if(gActiveChannel != channel || gIsPause) {
if (gWillNotify && gCanNotify) {
if (true == isImage) {
message = gImageStr;
}
doNotify(uid, channel, notifyTimestamp, message);
}
doNotify(uid, channel, notifyTimestamp, message);
}
gIdNotifyTs[channel][uid] = notifyTimestamp;
setNotifyTimestamps();
Expand Down

0 comments on commit 1e14c06

Please sign in to comment.