Skip to content

Commit

Permalink
Apply suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyDL-Infomaniak committed Jul 4, 2024
1 parent 1edc40c commit 6bdb6a3
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,10 @@ class ThreadListAdapter @Inject constructor(
// This method is only useful for old threads already stored in Realm, where they
// could be both answered and forwarded (for new threads, this is impossible).
fun computeReplyAndForwardIcon(isAnswered: Boolean, isForwarded: Boolean): Pair<Boolean, Boolean> {
return if (isAnswered) {
Pair(true, false)
} else if (isForwarded) {
Pair(false, true)
} else {
Pair(false, false)
return when {
isAnswered -> true to false
isForwarded -> false to true
else -> false to false
}
}

Expand Down

0 comments on commit 6bdb6a3

Please sign in to comment.