mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-03-28 01:28:15 -04:00
qml-app: remove deprecated usage of LibresapiLocalClient in ChatView
This commit is contained in:
parent
2c10e206b8
commit
1b032e0a4f
@ -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) })
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user