mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-06 21:58:57 -04:00
qml-app: remove deprecated usage of LibresapiLocalClient in ChatView
This commit is contained in:
parent
2c10e206b8
commit
1b032e0a4f
1 changed files with 1 additions and 8 deletions
|
@ -66,14 +66,7 @@ Item
|
||||||
onClicked:
|
onClicked:
|
||||||
{
|
{
|
||||||
var jsonData = {"chat_id":chatView.chatId, "msg":msgComposer.text}
|
var jsonData = {"chat_id":chatView.chatId, "msg":msgComposer.text}
|
||||||
sendRsApi.request("/chat/send_message", JSON.stringify(jsonData))
|
rsApi.request("/chat/send_message", JSON.stringify(jsonData), function(par) { msgComposer.text = ""; console.log(msg) })
|
||||||
}
|
|
||||||
|
|
||||||
LibresapiLocalClient
|
|
||||||
{
|
|
||||||
id: sendRsApi
|
|
||||||
onGoodResponseReceived: { msgComposer.text = ""; console.log(msg)}
|
|
||||||
Component.onCompleted: { openConnection(apiSocketPath) }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue