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