Keep microphone in foreground if we have any reason to

Stephen Paul Weber created

Otherwise we may lose it.

Change summary

src/main/java/eu/siacs/conversations/services/XmppConnectionService.java | 2 
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

src/main/java/eu/siacs/conversations/services/XmppConnectionService.java 🔗

@@ -1620,7 +1620,7 @@ public class XmppConnectionService extends Service {
             } else {
                 notification = this.mNotificationService.createForegroundNotification();
                 id = NotificationService.FOREGROUND_NOTIFICATION_ID;
-                startForegroundOrCatch(id, notification, needMic);
+                startForegroundOrCatch(id, notification, needMic || ongoing != null || diallerIntegrationActive.get());
             }
 
             if (!mForceForegroundService.get()) {