Fix successful response codes result passing

This commit is contained in:
Korna 2022-11-07 18:30:14 +03:00
parent 12db568087
commit 113d166fa6
1 changed files with 4 additions and 0 deletions

View File

@ -56,6 +56,10 @@ class HmsHpkClientServiceImpl(
)
when (HmsResponseCode.fromCode(result.code)) {
HmsResponseCode.SUCCESS -> {
// pass result
}
HmsResponseCode.INVALID_TOKEN,
HmsResponseCode.PERMISSION_DENIED -> {
throw InvalidPushTokenException()