feat(chat): full sudo.request support with expire, cancel-unblock, secret fields (#1056)
This commit is contained in:
10 files changed
+348
-7
No files matched your search
@@ -119,6 +119,18 @@ class ChatNotificationService : Service() {
|
||||
showReplyNotification(getString(R.string.notif_clarification_needed), null)
|
||||
}
|
||||
|
||||
is WsEvent.SudoRequest -> {
|
||||
showReplyNotification(getString(R.string.notif_input_needed), null)
|
||||
}
|
||||
|
||||
is WsEvent.SecretRequest -> {
|
||||
val body =
|
||||
event.prompt?.takeIf { it.isNotBlank() }
|
||||
?: event.envVar?.takeIf { it.isNotBlank() }
|
||||
?: getString(R.string.notif_input_needed)
|
||||
showReplyNotification(body, null)
|
||||
}
|
||||
|
||||
else -> {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user