This commit is contained in:
Peter Maquiran
2024-08-14 15:29:16 +01:00
parent d7eb6a552b
commit ea4ca5c34c
19 changed files with 270 additions and 80 deletions
+4 -2
View File
@@ -2,6 +2,7 @@ import { NgModule } from '@angular/core';
import { SignalRService } from 'src/app/module/chat/infra/socket/signal-r.service'
import { SyncMessageRepositoryService } from './data/service/sync-repository/sync-message-repository.service';
import { UserTypingAsyncService } from 'src/app/module/chat/data/async/socket/user-typing-async.service'
import { ChatServiceService } from 'src/app/module/chat/domain/chat-service.service'
@NgModule({
imports: [
@@ -19,10 +20,10 @@ export class ChatModule {
constructor(
private message: SyncMessageRepositoryService,
private SignalRService: SignalRService,
private UserTypingAsyncService: UserTypingAsyncService
private UserTypingAsyncService: UserTypingAsyncService,
private ChatServiceService: ChatServiceService
) {
this.triggerToSendOfflineMessages()
}
@@ -32,6 +33,7 @@ export class ChatModule {
result.subscribe((value) => {
if(value) {
this.ChatServiceService.asyncAllRoomMessage();
this.message.sendLocalMessages()
}
})