From 213e907f0d5f54e34d63b7996e3f726652adfff7 Mon Sep 17 00:00:00 2001 From: Vignesh Date: Tue, 22 Aug 2017 14:54:21 +0200 Subject: [PATCH 1/2] feature/#62-refresh-send-icon --- packages/rocketchat-ui-message/client/messageBox.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/rocketchat-ui-message/client/messageBox.js b/packages/rocketchat-ui-message/client/messageBox.js index add30a122142..b0b11646c201 100644 --- a/packages/rocketchat-ui-message/client/messageBox.js +++ b/packages/rocketchat-ui-message/client/messageBox.js @@ -251,6 +251,14 @@ Template.messageBox.events({ 'focus .input-message'(event, instance) { KonchatNotification.removeRoomNotification(this._id); chatMessages[this._id].input = instance.find('.input-message'); + // Created by Vignesh on 22/08/2017 + if ($('.input-message').val() !== ''){ + chatMessages[this._id].input.updateAutogrow(); + console.log($('.input-message').val()); + console.log('Text >filled'); + instance.isMessageFieldEmpty.set(false); + } + // End of creation by Vignesh on 22/08/2017 }, 'click .send-button'(event, instance) { const input = instance.find('.input-message'); From 4f9295a4270cc198e4d87ac6d6756ebec20f8657 Mon Sep 17 00:00:00 2001 From: Vignesh Date: Tue, 22 Aug 2017 15:03:53 +0200 Subject: [PATCH 2/2] feature/#62-refresh-send-icon --- packages/rocketchat-ui-message/client/messageBox.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/rocketchat-ui-message/client/messageBox.js b/packages/rocketchat-ui-message/client/messageBox.js index b0b11646c201..31e4c030e2d0 100644 --- a/packages/rocketchat-ui-message/client/messageBox.js +++ b/packages/rocketchat-ui-message/client/messageBox.js @@ -254,8 +254,6 @@ Template.messageBox.events({ // Created by Vignesh on 22/08/2017 if ($('.input-message').val() !== ''){ chatMessages[this._id].input.updateAutogrow(); - console.log($('.input-message').val()); - console.log('Text >filled'); instance.isMessageFieldEmpty.set(false); } // End of creation by Vignesh on 22/08/2017