feat(chat): full approval.request support (#1057)

This commit is contained in:
M57
2026-09-03 22:33:15 +03:00
committed by GitHub
parent 077ad1fa81
commit bd0b4c2d55
9 changed files with 630 additions and 49 deletions
@@ -131,6 +131,14 @@ class ChatNotificationService : Service() {
showReplyNotification(body, null)
}
is WsEvent.ApprovalRequest -> {
val preview =
event.description?.takeIf { it.isNotBlank() }
?: event.command?.takeIf { it.isNotBlank() }
?: getString(R.string.notif_input_needed)
showReplyNotification(preview.take(100), null)
}
else -> {}
}
}