Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
codabrink committed Sep 20, 2024
1 parent 17c9ea3 commit 45e31af
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ data class Conversations(
throw XMTPException("Recipient is sender")
}
val existingConversation = conversationsByTopic.values.firstOrNull {
it.peerAddress == peerAddress && it.conversationId == context?.conversationId
it.peerAddress() == peerAddress && it.conversationId == context?.conversationId
}
if (existingConversation != null) {
return existingConversation
Expand Down Expand Up @@ -347,15 +347,15 @@ data class Conversations(
newConversations.add(newConversation)
val consentProof = newConversation.consentProof
if (consentProof != null) {
handleConsentProof(consentProof, newConversation.peerAddress)
handleConsentProof(consentProof, newConversation.peerAddress())
}
} catch (e: Exception) {
Log.d(TAG, e.message.toString())
}
}

conversationsByTopic += newConversations.filter {
it.peerAddress != client.address && Topic.isValidTopic(it.topic)
it.peerAddress() != client.address && Topic.isValidTopic(it.topic)
}.map { Pair(it.topic, it) }

if (includeGroups) {
Expand Down

0 comments on commit 45e31af

Please sign in to comment.