Skip to content

Commit

Permalink
feat: add new remote admin routing errors
Browse files Browse the repository at this point in the history
  • Loading branch information
andrekir committed Oct 6, 2024
1 parent fe79c9f commit 8af225b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/com/geeksville/mesh/model/Message.kt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ val Routing.Error.stringRes: Int
Routing.Error.NOT_AUTHORIZED -> R.string.routing_error_not_authorized
Routing.Error.PKI_FAILED -> R.string.routing_error_pki_failed
Routing.Error.PKI_UNKNOWN_PUBKEY -> R.string.routing_error_pki_unknown_pubkey
Routing.Error.ADMIN_BAD_SESSION_KEY -> R.string.routing_error_admin_bad_session_key
Routing.Error.ADMIN_PUBLIC_KEY_UNAUTHORIZED -> R.string.routing_error_admin_public_key_unauthorized
else -> R.string.unrecognized
}

Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@
<string name="routing_error_not_authorized">Not Authorized</string>
<string name="routing_error_pki_failed">Encrypted Send Failed</string>
<string name="routing_error_pki_unknown_pubkey">Unknown Public Key</string>
<string name="routing_error_admin_bad_session_key">Bad session key</string>
<string name="routing_error_admin_public_key_unauthorized">Public Key unauthorized</string>

<string name="role_client">App connected or standalone messaging device.</string>
<string name="role_client_mute">Device that does not forward packets from other devices.</string>
Expand Down

0 comments on commit 8af225b

Please sign in to comment.