This commit is contained in:
Peter Maquiran
2022-02-10 16:14:25 +01:00
parent 9498ad0825
commit 115c76f1ff
9 changed files with 7 additions and 22 deletions
+3 -2
View File
@@ -129,6 +129,7 @@ export class RoomService {
if(message.fields.eventName == this.id+'/'+'typing') {
this.userThatIsTyping = this.usernameToDisplayName(message.fields.args[0])
console.log(this.userThatIsTyping, 'this.userThatIsTyping')
this.isTyping = message.fields.args[1]
this.otherUserType = message.fields.args[1]
@@ -311,7 +312,7 @@ export class RoomService {
}
typing(text:string = this.message) {
sendTyping(text:string = this.message) {
if(this.lastMessageTxt == text) { return false }
this.lastTimeType = new Date().getTime()
@@ -351,7 +352,7 @@ export class RoomService {
}
private setTypingOff() {
this.typing('')
this.sendTyping('')
}
roomLeave() {