From b930ac98204da2d2a7ccd440786988e7e5b76e50 Mon Sep 17 00:00:00 2001 From: skydoves Date: Mon, 30 Oct 2023 20:48:34 +0900 Subject: [PATCH] Clean up code --- .../getstream/whatsappclone/video/WhatsAppVideoCallViewModel.kt | 2 -- .../whatsappclone/video/initializer/StreamVideoInitializer.kt | 1 - 2 files changed, 3 deletions(-) diff --git a/features/video/src/main/kotlin/io/getstream/whatsappclone/video/WhatsAppVideoCallViewModel.kt b/features/video/src/main/kotlin/io/getstream/whatsappclone/video/WhatsAppVideoCallViewModel.kt index 8cf592b..dea7a4e 100644 --- a/features/video/src/main/kotlin/io/getstream/whatsappclone/video/WhatsAppVideoCallViewModel.kt +++ b/features/video/src/main/kotlin/io/getstream/whatsappclone/video/WhatsAppVideoCallViewModel.kt @@ -16,7 +16,6 @@ package io.getstream.whatsappclone.video -import android.util.Log import androidx.lifecycle.ViewModel import androidx.lifecycle.viewModelScope import dagger.hilt.android.lifecycle.HiltViewModel @@ -43,7 +42,6 @@ class WhatsAppVideoCallViewModel @Inject constructor( val activeCall = streamVideo.state.activeCall.value val call = if (activeCall != null) { if (activeCall.id != id) { - Log.w("CallActivity", "A call with id: $id existed. Leaving.") // If the call id is different leave the previous call activeCall.leave() // Return a new call diff --git a/features/video/src/main/kotlin/io/getstream/whatsappclone/video/initializer/StreamVideoInitializer.kt b/features/video/src/main/kotlin/io/getstream/whatsappclone/video/initializer/StreamVideoInitializer.kt index 4865fbd..673f51d 100644 --- a/features/video/src/main/kotlin/io/getstream/whatsappclone/video/initializer/StreamVideoInitializer.kt +++ b/features/video/src/main/kotlin/io/getstream/whatsappclone/video/initializer/StreamVideoInitializer.kt @@ -28,7 +28,6 @@ class StreamVideoInitializer : Initializer { override fun create(context: Context) { val userId = "stream" - // initialize Stream Video SDK StreamVideoBuilder( context = context, apiKey = BuildConfig.STREAM_API_KEY,