We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ed5eb72 commit 13a8395Copy full SHA for 13a8395
app/src/main/java/org/kontalk/authenticator/MyAccount.kt
@@ -68,7 +68,7 @@ class MyAccount (val systemAccount: Account, private val accountManager: Account
68
fun isSelfJID(bareJid: BareJid): Boolean = bareJid.equals(selfJID)
69
70
fun isNetworkJID(bareJid: BareJid): Boolean {
71
- return serverList.first { it.network.equals(bareJid.domain.toString(), true) } != null
+ return serverList.firstOrNull { it.network.equals(bareJid.domain.toString(), true) } != null
72
}
73
74
fun createLocalJID(localpart: String): String {
0 commit comments