mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-08 09:05:24 -04:00
qml-app: Fix responsiveness of ChatView
ChatHandler::handleMessages(...) tick() before repling so the raw message queue is processed ChatHandler::handleLobbies(...) make sure tick() is called without previous mutex locking, putting the critical section inside a block ChatView.qml remove unnecessary request to statetoken service that slowed down processing by half, increased chat message refresh time to reduce performance hit
This commit is contained in:
parent
1fa20e16c2
commit
6c6b437db1
3 changed files with 20 additions and 15 deletions
|
@ -33,15 +33,15 @@ Item
|
|||
function refreshOwn()
|
||||
{
|
||||
rsApi.request("/identity/own", "", function(par)
|
||||
{
|
||||
var json = JSON.parse(par.response)
|
||||
if(json.data.length > 0)
|
||||
{
|
||||
contactsView.own_gxs_id = json.data[0].gxs_id
|
||||
contactsView.own_nick = json.data[0].name
|
||||
}
|
||||
else createIdentityDialog.visible = true
|
||||
})
|
||||
{
|
||||
var json = JSON.parse(par.response)
|
||||
if(json.data.length > 0)
|
||||
{
|
||||
contactsView.own_gxs_id = json.data[0].gxs_id
|
||||
contactsView.own_nick = json.data[0].name
|
||||
}
|
||||
else createIdentityDialog.visible = true
|
||||
})
|
||||
}
|
||||
|
||||
onFocusChanged: focus && refreshData()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue