From e8b944c0e180781ab074ea5b820adec808871c17 Mon Sep 17 00:00:00 2001 From: David Baker Date: Sun, 19 Jul 2015 16:43:45 +0100 Subject: [PATCH] Sooner or later I'll get used to this. --- src/controllers/molecules/MessageComposer.js | 10 +++++----- src/controllers/organisms/RoomView.js | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/controllers/molecules/MessageComposer.js b/src/controllers/molecules/MessageComposer.js index 49d84cf1b..f2af22e55 100644 --- a/src/controllers/molecules/MessageComposer.js +++ b/src/controllers/molecules/MessageComposer.js @@ -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 diff --git a/src/controllers/organisms/RoomView.js b/src/controllers/organisms/RoomView.js index 59807b63f..3ebbd3fed 100644 --- a/src/controllers/organisms/RoomView.js +++ b/src/controllers/organisms/RoomView.js @@ -243,7 +243,7 @@ module.exports = { } }, - getWhoIsTypingString() { + getWhoIsTypingString: function() { return WhoIsTyping.whoIsTypingString(this.state.room); },