Handle non-200 response codes

This commit is contained in:
nielsandriesse 2020-09-15 17:10:48 +10:00
parent 518e88bd0a
commit c4ea3240e3

View File

@ -128,6 +128,9 @@ object LokiPushNotificationManager {
Log.d("Loki", "Couldn't subscribe/unsubscribe to/from PNs for closed group with ID: $closedGroupPublicKey due to error: ${json?.get("message") as? String ?: "null"}.") Log.d("Loki", "Couldn't subscribe/unsubscribe to/from PNs for closed group with ID: $closedGroupPublicKey due to error: ${json?.get("message") as? String ?: "null"}.")
} }
} }
else -> {
Log.d("Loki", "Couldn't subscribe/unsubscribe to/from PNs for closed group with ID: $closedGroupPublicKey.")
}
} }
} }