diff --git a/plugins/messages/main.js b/plugins/messages/main.js
index 241cfa6bd..099e51a3d 100644
--- a/plugins/messages/main.js
+++ b/plugins/messages/main.js
@@ -185,19 +185,19 @@ define(requires, function (messagesTpl, recentTpl, conversationTpl, contactTpl,
$('#message-send-form').on('submit', function(e) {
e.preventDefault();
- var message = $(this).find("#message-text").val();
+ var originalMessage = $(this).find("#message-text").val();
$("#message-text").val("");
conversationArea = $(".conversation-area");
messageId = hex_md5(message + MM.util.timestamp());
- message = '
' + MM.util.formatText(message, true);
+ var message = '
' + MM.util.formatText(originalMessage, true);
message += '
';
conversationArea.append(message);
// Scroll bottom.
conversationArea.scrollTop(conversationArea.prop("scrollHeight"));
- MM.plugins.messages._sendMessage(userId, message,
+ MM.plugins.messages._sendMessage(userId, originalMessage,
function(m) {
$("#" + messageId).addClass("removeMessage");
$("#message-text").val("");
@@ -221,7 +221,7 @@ define(requires, function (messagesTpl, recentTpl, conversationTpl, contactTpl,
// Uggly hack.
var fixFactor = 115;
if (MM.deviceType == "tablet") {
- fixFactor = 65;
+ fixFactor = 45;
} else if (MM.deviceOS == "ios") {
fixFactor = 20;
}