Skip to content

Commit

Permalink
fix: RobiMez#19 avoid delay
Browse files Browse the repository at this point in the history
  • Loading branch information
RobiMez committed Apr 21, 2024
1 parent be0ca84 commit 300f0df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/b/[room]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@
const profanityCheck = await checkProfanity(message);
if (profanityCheck.isProfanity) {
console.log('This message has profanity');
message = '';
profanityWarning = true;
setTimeout(() => {
profanityWarning = false;
message = '';
}, 6000);
return;
}
Expand Down Expand Up @@ -91,10 +91,10 @@
console.log(resp.message);
} else {
console.log(resp.message);
message = '';
sent = true;
setTimeout(() => {
sent = false;
message = '';
}, 3000);
}
};
Expand Down

0 comments on commit 300f0df

Please sign in to comment.