Skip to content

Commit

Permalink
squash: Fixes comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
damencho committed Sep 13, 2024
1 parent 24453fc commit b3cc809
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,11 +98,8 @@ open class JigasiDetector(
}

fun hasTranscriber(chatRoom: ChatRoom?): Boolean {
chatRoom?.let {
chatRoom.members.firstOrNull { member -> member.isTranscriber } != null
}

return false
return chatRoom?.members?.any { member -> member.isTranscriber }
?: false
}

/**
Expand Down

0 comments on commit b3cc809

Please sign in to comment.