mirror of
https://github.com/vector-im/element-call.git
synced 2026-02-14 04:37:03 +00:00
revert complete behavior check
This commit is contained in:
@@ -80,11 +80,8 @@ export class ObservableScope {
|
||||
error(err: unknown) {
|
||||
subject$.error(err);
|
||||
},
|
||||
complete() {
|
||||
subject$.complete();
|
||||
},
|
||||
});
|
||||
if (subject$.value === nothing && !subject$.isStopped)
|
||||
if (subject$.value === nothing)
|
||||
throw new Error("Behavior failed to synchronously emit an initial value");
|
||||
return subject$ as Behavior<T>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user