From 1b032e0a4fe23966e20515918513e64b9e62d9de Mon Sep 17 00:00:00 2001 From: Gioacchino Mazzurco Date: Thu, 22 Dec 2016 13:49:13 +0100 Subject: [PATCH] qml-app: remove deprecated usage of LibresapiLocalClient in ChatView --- retroshare-qml-app/src/qml/ChatView.qml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/retroshare-qml-app/src/qml/ChatView.qml b/retroshare-qml-app/src/qml/ChatView.qml index 3194d97a8..7f6139b9b 100644 --- a/retroshare-qml-app/src/qml/ChatView.qml +++ b/retroshare-qml-app/src/qml/ChatView.qml @@ -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) }) } }