File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -143,8 +143,17 @@ impl<R: tauri::Runtime, T: tauri::Manager<R>> NotificationPluginExt<R> for T {
143
143
144
144
// Process mic detection signal
145
145
let signal = crate :: meeting_detection:: MeetingSignal :: MicrophoneActive ;
146
+ let score = meeting_detector. process_signal ( signal) ;
146
147
147
- if let Some ( score) = meeting_detector. process_signal ( signal) {
148
+ handle_meeting_notification ( score, auto_record_enabled, & bundle_id) ;
149
+ } ) ;
150
+
151
+ fn handle_meeting_notification (
152
+ score : Option < crate :: meeting_detection:: MeetingScore > ,
153
+ auto_record_enabled : bool ,
154
+ bundle_id : & str ,
155
+ ) {
156
+ if let Some ( score) = score {
148
157
// Auto-recording was triggered
149
158
let notif = hypr_notification2:: Notification {
150
159
title : "Meeting detected" . to_string ( ) ,
@@ -181,7 +190,7 @@ impl<R: tauri::Runtime, T: tauri::Manager<R>> NotificationPluginExt<R> for T {
181
190
bundle_id,
182
191
auto_record_enabled
183
192
) ;
184
- } ) ;
193
+ }
185
194
186
195
{
187
196
let mut guard = state. lock ( ) . unwrap ( ) ;
You can’t perform that action at this time.
0 commit comments