mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Sooner or later I'll get used to this.
This commit is contained in:
parent
e1f3c80f19
commit
e8b944c0e1
@ -340,7 +340,7 @@ module.exports = {
|
|||||||
this.stopServerTypingTimer();
|
this.stopServerTypingTimer();
|
||||||
},
|
},
|
||||||
|
|
||||||
startUserTypingTimer() {
|
startUserTypingTimer: function() {
|
||||||
this.stopUserTypingTimer();
|
this.stopUserTypingTimer();
|
||||||
var self = this;
|
var self = this;
|
||||||
this.userTypingTimer = setTimeout(function() {
|
this.userTypingTimer = setTimeout(function() {
|
||||||
@ -350,11 +350,11 @@ module.exports = {
|
|||||||
}, TYPING_USER_TIMEOUT);
|
}, TYPING_USER_TIMEOUT);
|
||||||
},
|
},
|
||||||
|
|
||||||
stopUserTypingTimer() {
|
stopUserTypingTimer: function() {
|
||||||
clearTimeout(this.userTypingTimer);
|
clearTimeout(this.userTypingTimer);
|
||||||
},
|
},
|
||||||
|
|
||||||
startServerTypingTimer() {
|
startServerTypingTimer: function() {
|
||||||
var self = this;
|
var self = this;
|
||||||
this.serverTypingTimer = setTimeout(function() {
|
this.serverTypingTimer = setTimeout(function() {
|
||||||
self.sendTyping(self.isTyping);
|
self.sendTyping(self.isTyping);
|
||||||
@ -362,14 +362,14 @@ module.exports = {
|
|||||||
}, TYPING_SERVER_TIMEOUT / 2);
|
}, TYPING_SERVER_TIMEOUT / 2);
|
||||||
},
|
},
|
||||||
|
|
||||||
stopServerTypingTimer() {
|
stopServerTypingTimer: function() {
|
||||||
if (this.serverTypingTimer) {
|
if (this.serverTypingTimer) {
|
||||||
clearTimeout(this.servrTypingTimer);
|
clearTimeout(this.servrTypingTimer);
|
||||||
this.serverTypingTimer = null;
|
this.serverTypingTimer = null;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
sendTyping(isTyping) {
|
sendTyping: function(isTyping) {
|
||||||
MatrixClientPeg.get().sendTyping(
|
MatrixClientPeg.get().sendTyping(
|
||||||
this.props.room.roomId,
|
this.props.room.roomId,
|
||||||
this.isTyping, TYPING_SERVER_TIMEOUT
|
this.isTyping, TYPING_SERVER_TIMEOUT
|
||||||
|
@ -243,7 +243,7 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
getWhoIsTypingString() {
|
getWhoIsTypingString: function() {
|
||||||
return WhoIsTyping.whoIsTypingString(this.state.room);
|
return WhoIsTyping.whoIsTypingString(this.state.room);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user