Hide emoji picker when a message is sent

This commit is contained in:
Angela Mazzurco 2017-07-01 17:02:00 +02:00
parent 2d7e7d321a
commit f975f340a4

View File

@ -363,6 +363,7 @@ Item
function sendMessage () function sendMessage ()
{ {
if (emojiPicker.state == "EMOJI_SHOWN") emojiPicker.state = "EMOJI_HIDDEN"
var jsonData = {"chat_id":chatView.chatId, "msg":msgField.text} var jsonData = {"chat_id":chatView.chatId, "msg":msgField.text}
rsApi.request( "/chat/send_message", JSON.stringify(jsonData), rsApi.request( "/chat/send_message", JSON.stringify(jsonData),
function(par) { msgField.text = ""; } ) function(par) { msgField.text = ""; } )