add readAt functionality

This commit is contained in:
Peter Maquiran
2024-07-18 16:19:30 +01:00
parent cf6fe3a4c8
commit cd1c61fe86
11 changed files with 120 additions and 33 deletions
@@ -19,7 +19,6 @@ export class MessageAsyncService {
private messageLocalDataSourceService: MessageLocalDataSourceService
) {
this.messageLiveSignalRDataSourceService.getMessage().pipe(
filter((message: any) => {
return !message?.requestId?.startsWith(InstanceId) && message?.requestId
@@ -40,7 +39,6 @@ export class MessageAsyncService {
this.incomingMessage(incomingMessage)
})
}
@@ -21,17 +21,15 @@ export class UserTypingAsyncService {
private signalR: SignalRService,
) {
this.signalR.getTyping().subscribe(async (e:any) => {
if(e?.chatRoomId) {
console.log('e', e)
this.signalR.getTyping().subscribe(async (e) => {
if(e?.roomId) {
this.memoryDataSource.dispatch(removeUserTyping({data: {...e} as any}))
this.memoryDataSource.dispatch(addUserTyping({data: {...e} as any}))
//
const value = await this.localDataSource.addUserTyping(e);
const id = e.chatRoomId + '@' + e.userName
const id = e.roomId + '@' + e.userName
if(!this.typingCallback[id]) {
this.typingCallback[id] = new Subject()
this.typingCallback[id].pipe(