This commit is contained in:
Peter Maquiran
2022-01-29 19:21:46 +01:00
parent bf0dbf8baf
commit ed77e1aea7
14 changed files with 402 additions and 19 deletions
+19 -1
View File
@@ -12,6 +12,8 @@ import { NativeNotificationService } from 'src/app/services/native-notification.
import { SessionStore } from 'src/app/store/session.service';
import { capitalizeTxt } from 'src/plugin/text'
import { SortService } from '../functions/sort.service';
import { chatUser } from 'src/app/models/chatMethod';
@Injectable({
providedIn: 'root'
})
@@ -40,6 +42,9 @@ export class RoomService {
mgsArray = [];
scrollDown = () => { }
getAllUsers = (): chatUser[] => {
return []
}
constructor(
public WsChatService: WsChatService,
@@ -198,6 +203,19 @@ export class RoomService {
}, 3000)
}
private setTypingOff() {
this.typing('')
}
roomLeave() {
this.setTypingOff()
}
open() {
// this.typing(this.message)
}
leave(rid?) {
this.WsChatService.leaveRoom(this.id)
}
@@ -437,7 +455,7 @@ export class RoomService {
console.log('FIX UPDATE ', message.result)
message.result._updatedAt = message.result._updatedAt['$date']
} else {
console.log('FIX UPDATE 11', message)
// console.log('FIX UPDATE 11', message)
message._updatedAt = message._updatedAt['$date']
}
return message