mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-07-21 13:52:25 +02:00
Typo
This commit is contained in:
@ -226,19 +226,19 @@ class Relay(
|
|||||||
}
|
}
|
||||||
"OK" -> listeners.forEach {
|
"OK" -> listeners.forEach {
|
||||||
val eventId = msgArray[1].asText()
|
val eventId = msgArray[1].asText()
|
||||||
val sucess = msgArray[2].asBoolean()
|
val success = msgArray[2].asBoolean()
|
||||||
val message = msgArray[3].asText()
|
val message = msgArray[3].asText()
|
||||||
|
|
||||||
if (authResponse.containsKey(eventId)) {
|
if (authResponse.containsKey(eventId)) {
|
||||||
val wasAlreadyAuthenticated = authResponse.get(eventId)
|
val wasAlreadyAuthenticated = authResponse.get(eventId)
|
||||||
authResponse.put(eventId, sucess)
|
authResponse.put(eventId, success)
|
||||||
if (wasAlreadyAuthenticated != true && sucess) {
|
if (wasAlreadyAuthenticated != true && success) {
|
||||||
renewFilters()
|
renewFilters()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Log.w("Relay", "Relay on OK $url, $eventId, $sucess, $message")
|
Log.w("Relay", "Relay on OK $url, $eventId, $success, $message")
|
||||||
it.onSendResponse(this@Relay, eventId, sucess, message)
|
it.onSendResponse(this@Relay, eventId, success, message)
|
||||||
}
|
}
|
||||||
"AUTH" -> listeners.forEach {
|
"AUTH" -> listeners.forEach {
|
||||||
// Log.w("Relay", "Relay$url, ${msg[1].asString}")
|
// Log.w("Relay", "Relay$url, ${msg[1].asString}")
|
||||||
|
Reference in New Issue
Block a user