Sooner or later I'll get used to this.

This commit is contained in:
David Baker 2015-07-19 16:43:45 +01:00
parent e1f3c80f19
commit e8b944c0e1
2 changed files with 6 additions and 6 deletions

View File

@ -340,7 +340,7 @@ module.exports = {
this.stopServerTypingTimer();
},
startUserTypingTimer() {
startUserTypingTimer: function() {
this.stopUserTypingTimer();
var self = this;
this.userTypingTimer = setTimeout(function() {
@ -350,11 +350,11 @@ module.exports = {
}, TYPING_USER_TIMEOUT);
},
stopUserTypingTimer() {
stopUserTypingTimer: function() {
clearTimeout(this.userTypingTimer);
},
startServerTypingTimer() {
startServerTypingTimer: function() {
var self = this;
this.serverTypingTimer = setTimeout(function() {
self.sendTyping(self.isTyping);
@ -362,14 +362,14 @@ module.exports = {
}, TYPING_SERVER_TIMEOUT / 2);
},
stopServerTypingTimer() {
stopServerTypingTimer: function() {
if (this.serverTypingTimer) {
clearTimeout(this.servrTypingTimer);
this.serverTypingTimer = null;
}
},
sendTyping(isTyping) {
sendTyping: function(isTyping) {
MatrixClientPeg.get().sendTyping(
this.props.room.roomId,
this.isTyping, TYPING_SERVER_TIMEOUT

View File

@ -243,7 +243,7 @@ module.exports = {
}
},
getWhoIsTypingString() {
getWhoIsTypingString: function() {
return WhoIsTyping.whoIsTypingString(this.state.room);
},