Skip to content

Commit

Permalink
Merge pull request #117 from GetStream/refactor/call-vm
Browse files Browse the repository at this point in the history
Clean up code
  • Loading branch information
skydoves committed Oct 30, 2023
2 parents 68b15c0 + b930ac9 commit 420142c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class StreamVideoInitializer : Initializer<Unit> {

override fun create(context: Context) {
val userId = "stream"
// initialize Stream Video SDK
StreamVideoBuilder(
context = context,
apiKey = BuildConfig.STREAM_API_KEY,
Expand Down

0 comments on commit 420142c

Please sign in to comment.