Skip to content

Commit

Permalink
Merge branch 'main' into feature/reactions
Browse files Browse the repository at this point in the history
  • Loading branch information
skydoves authored Oct 31, 2023
2 parents ca4eff7 + 420142c commit a9053e0
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 a9053e0

Please sign in to comment.