mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
fix chat
This commit is contained in:
@@ -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()
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user