mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-05 21:22:07 +02:00
Case 20617 - People app filter bar breaks when deleting connections
This commit is contained in:
parent
2fd2d2cc5d
commit
87d75ec75c
2 changed files with 9 additions and 1 deletions
|
@ -1261,6 +1261,14 @@ Rectangle {
|
|||
case 'refreshConnections':
|
||||
refreshConnections();
|
||||
break;
|
||||
case 'connectionRemoved':
|
||||
for (var i=0; i<connectionsUserModel.count; ++i) {
|
||||
if (connectionsUserModel.get(i).userName === message.params) {
|
||||
connectionsUserModel.remove(i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'avatarDisconnected':
|
||||
var sessionID = message.params[0];
|
||||
delete ignored[sessionID];
|
||||
|
|
|
@ -284,7 +284,7 @@ function fromQml(message) { // messages are {method, params}, like json-rpc. See
|
|||
print("Error: unable to remove connection", connectionUserName, error || response.status);
|
||||
return;
|
||||
}
|
||||
sendToQml({ method: 'refreshConnections' });
|
||||
sendToQml({ method: 'connectionRemoved', params: connectionUserName });
|
||||
});
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in a new issue