Skip to content

Commit

Permalink
Update index-bubbles.html
Browse files Browse the repository at this point in the history
  • Loading branch information
oelna authored Nov 25, 2022
1 parent 1957c00 commit 03f7e30
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions index-bubbles.html
Original file line number Diff line number Diff line change
Expand Up @@ -319,21 +319,17 @@
let isRecent = false;
let longAgo = false;
if (previousMessage) {
console.log(previousMessage);

if (previousMessage.user['username'] == user['username']) {
console.log('message from the same user');
sameUser = true;
}

const lastTime = new Date(parseInt(previousMessage.user['tmi-sent-ts']));
if (Math.abs(now-lastTime) < recentTimeout*1000) {
console.log('message is recent');
isRecent = true;
}

if (Math.abs(now-lastTime) > 60*1000) {
console.log('message is from long ago');
longAgo = true;
}
}
Expand Down

0 comments on commit 03f7e30

Please sign in to comment.