Skip to content

Commit

Permalink
docs: add comment to verifySaga
Browse files Browse the repository at this point in the history
  • Loading branch information
Kacper-RF committed Nov 16, 2023
1 parent a29f81a commit dce52e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function* verifyMessagesSaga(

if (username !== ownerNickname) {
const expectedMessage = yield* call(userJoinedMessage, username)

// Checking first info message from user on general channel to check if he was trying to send a fake malicious if so, we do not process this message further
if (getMessagesFromGeneralByPubKey[0].message !== expectedMessage) {
console.error(`${username} tried to send a malicious info message`)
return
Expand Down

0 comments on commit dce52e7

Please sign in to comment.