Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up code #117

Merged
merged 1 commit into from
Oct 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading