qml-app: remove deprecated usage of LibresapiLocalClient in ChatView

This commit is contained in:
Gioacchino Mazzurco 2016-12-22 13:49:13 +01:00
parent 2c10e206b8
commit 1b032e0a4f

View File

@ -66,14 +66,7 @@ Item
onClicked:
{
var jsonData = {"chat_id":chatView.chatId, "msg":msgComposer.text}
sendRsApi.request("/chat/send_message", JSON.stringify(jsonData))
}
LibresapiLocalClient
{
id: sendRsApi
onGoodResponseReceived: { msgComposer.text = ""; console.log(msg)}
Component.onCompleted: { openConnection(apiSocketPath) }
rsApi.request("/chat/send_message", JSON.stringify(jsonData), function(par) { msgComposer.text = ""; console.log(msg) })
}
}