notifications

This commit is contained in:
callebtc
2025-07-10 12:08:22 +02:00
parent 797eee0257
commit 8b5c19ace7
3 changed files with 48 additions and 1 deletions
@@ -35,6 +35,7 @@ class ChatViewModel(application: Application) : AndroidViewModel(application), B
private val channelManager = ChannelManager(state, messageManager, dataManager, viewModelScope)
val privateChatManager = PrivateChatManager(state, messageManager, dataManager)
private val commandProcessor = CommandProcessor(state, messageManager, channelManager, privateChatManager)
private val notificationManager = NotificationManager(application.applicationContext)
// Delegate handler for mesh callbacks
private val meshDelegateHandler = MeshDelegateHandler(
@@ -42,6 +43,7 @@ class ChatViewModel(application: Application) : AndroidViewModel(application), B
messageManager = messageManager,
channelManager = channelManager,
privateChatManager = privateChatManager,
notificationManager = notificationManager,
coroutineScope = viewModelScope,
onHapticFeedback = { ChatViewModelUtils.triggerHapticFeedback(context) },
getMyPeerID = { meshService.myPeerID }