mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Bugfix sending of typing events
This commit is contained in:
parent
e8b944c0e1
commit
caa7f813eb
@ -351,15 +351,22 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
stopUserTypingTimer: function() {
|
stopUserTypingTimer: function() {
|
||||||
clearTimeout(this.userTypingTimer);
|
if (this.userTypingTimer) {
|
||||||
|
clearTimeout(this.userTypingTimer);
|
||||||
|
this.userTypingTimer = null;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
startServerTypingTimer: function() {
|
startServerTypingTimer: function() {
|
||||||
var self = this;
|
if (!this.serverTypingTimer) {
|
||||||
this.serverTypingTimer = setTimeout(function() {
|
var self = this;
|
||||||
self.sendTyping(self.isTyping);
|
this.serverTypingTimer = setTimeout(function() {
|
||||||
self.startServerTypingTimer();
|
if (self.isTyping) {
|
||||||
}, TYPING_SERVER_TIMEOUT / 2);
|
self.sendTyping(self.isTyping);
|
||||||
|
self.startServerTypingTimer();
|
||||||
|
}
|
||||||
|
}, TYPING_SERVER_TIMEOUT / 2);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
stopServerTypingTimer: function() {
|
stopServerTypingTimer: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user