refactor: Client Notification Support (#2095)

This commit is contained in:
James Rich 2025-06-13 01:00:28 +00:00 committed by GitHub
parent 2a274e259b
commit 606d1520d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 101 additions and 1 deletions

View file

@ -434,6 +434,18 @@ class UIViewModel @Inject constructor(
)
}.launchIn(viewModelScope)
radioConfigRepository.clientNotification.filterNotNull().onEach { notification ->
showAlert(
title = app.getString(R.string.client_notification),
message = notification.message,
onConfirm = {
radioConfigRepository.clearClientNotification()
meshServiceNotifications.clearClientNotification(notification)
},
dismissable = false
)
}.launchIn(viewModelScope)
radioConfigRepository.localConfigFlow.onEach { config ->
_localConfig.value = config
}.launchIn(viewModelScope)