mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-19 13:02:56 +00:00
add readAt functionality
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user