Handle non-200 response codes

pull/338/head
nielsandriesse 5 years ago
parent 518e88bd0a
commit c4ea3240e3

@ -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.")
}
} }
} }

Loading…
Cancel
Save