From 172b5d23df711975a6578d2e3938efbcaac7388c Mon Sep 17 00:00:00 2001 From: Zita Szupera Date: Fri, 22 Nov 2024 10:47:31 +0100 Subject: [PATCH] fix: providedIn annotation for audio recorder service --- .../src/lib/voice-recorder/audio-recorder.service.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/projects/stream-chat-angular/src/lib/voice-recorder/audio-recorder.service.ts b/projects/stream-chat-angular/src/lib/voice-recorder/audio-recorder.service.ts index c99538b1..a17c113b 100644 --- a/projects/stream-chat-angular/src/lib/voice-recorder/audio-recorder.service.ts +++ b/projects/stream-chat-angular/src/lib/voice-recorder/audio-recorder.service.ts @@ -1,4 +1,4 @@ -import { Injectable } from '@angular/core'; +import { Injectable, NgModule } from '@angular/core'; import { AmplitudeRecorderService } from './amplitude-recorder.service'; import { isSafari } from '../is-safari'; import { MediaRecorderConfig, MultimediaRecorder } from './media-recorder'; @@ -7,12 +7,11 @@ import { ChatClientService } from '../chat-client.service'; import { TranscoderService } from './transcoder.service'; import { resampleWaveForm } from '../wave-form-sampler'; import { AudioRecording, MediaRecording } from '../types'; -import { NgModel } from '@angular/forms'; /** * The `AudioRecorderService` can record an audio file, the SDK uses this to record a voice message */ -@Injectable({ providedIn: NgModel }) +@Injectable({ providedIn: NgModule }) export class AudioRecorderService extends MultimediaRecorder< Omit > {