mirror of
https://github.com/oxen-io/session-android.git
synced 2025-10-25 02:30:15 +00:00
Run webrtc calls as foreground service
Should hopefully stop performance degredation when in background Fixes #6249 // FREEBIE
This commit is contained in:
@@ -62,7 +62,7 @@ import org.thoughtcrime.securesms.service.MessageRetrievalService;
|
||||
import org.thoughtcrime.securesms.util.ServiceUtil;
|
||||
import org.thoughtcrime.securesms.util.SpanUtil;
|
||||
import org.thoughtcrime.securesms.util.TextSecurePreferences;
|
||||
import org.thoughtcrime.securesms.webrtc.CallNotificationManager;
|
||||
import org.thoughtcrime.securesms.webrtc.CallNotificationBuilder;
|
||||
import org.whispersystems.signalservice.api.messages.SignalServiceEnvelope;
|
||||
|
||||
import java.util.HashSet;
|
||||
@@ -159,7 +159,7 @@ public class MessageNotifier {
|
||||
|
||||
if (notification.getId() != SUMMARY_NOTIFICATION_ID &&
|
||||
notification.getId() != NotificationBarManager.RED_PHONE_NOTIFICATION &&
|
||||
notification.getId() != CallNotificationManager.WEBRTC_NOTIFICATION &&
|
||||
notification.getId() != CallNotificationBuilder.WEBRTC_NOTIFICATION &&
|
||||
notification.getId() != KeyCachingService.SERVICE_RUNNING_ID &&
|
||||
notification.getId() != MessageRetrievalService.FOREGROUND_ID)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user