Skip to content

Commit fefded1

Browse files
committed
another scenario to lowercase
1 parent e1b4c0a commit fefded1

File tree

1 file changed

+2
-1
lines changed
  • library/src/main/java/org/xmtp/android/library

1 file changed

+2
-1
lines changed

library/src/main/java/org/xmtp/android/library/Client.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,8 @@ class Client() {
561561

562562
fun canMessage(addresses: List<String>): Boolean {
563563
return runBlocking {
564-
libXMTPClient != null && !libXMTPClient!!.canMessage(addresses).contains(false)
564+
libXMTPClient != null && !libXMTPClient!!.canMessage(addresses.map { it.lowercase() })
565+
.contains(false)
565566
}
566567
}
567568

0 commit comments

Comments
 (0)