mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-17 13:19:52 +01:00
Add offline state for pending contacts.
This commit is contained in:
@@ -131,6 +131,7 @@ This will return a JSON array of pending contacts and their states:
|
||||
The state can be one of these values:
|
||||
|
||||
* `waiting_for_connection`
|
||||
* `offline`
|
||||
* `connecting`
|
||||
* `adding_contact`
|
||||
* `failed`
|
||||
|
||||
@@ -16,6 +16,7 @@ internal fun PendingContact.output() = JsonDict(
|
||||
|
||||
internal fun PendingContactState.output() = when(this) {
|
||||
WAITING_FOR_CONNECTION -> "waiting_for_connection"
|
||||
OFFLINE -> "offline"
|
||||
CONNECTING -> "connecting"
|
||||
ADDING_CONTACT -> "adding_contact"
|
||||
FAILED -> "failed"
|
||||
|
||||
Reference in New Issue
Block a user