Skip to content

Commit

Permalink
Fixed error
Browse files Browse the repository at this point in the history
  • Loading branch information
Decoder07 committed May 23, 2024
1 parent a43d42e commit a33b9ee
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ class HMSVirtualBackgroundAction {
}

private fun isSupported(result: Result){
result.success(HMSResultExtension.toDictionary(true,virtualBackgroundPlugin?.isSupported()))
virtualBackgroundPlugin?.let {_virtualBackgroundPlugin ->
result.success(HMSResultExtension.toDictionary(true,_virtualBackgroundPlugin.isSupported()))
}?:run{
result.success(HMSResultExtension.toDictionary(true,false))
}
}
}
}

0 comments on commit a33b9ee

Please sign in to comment.