local peers should always be online
This commit is contained in:
parent
828705923c
commit
d799e690b5
4 changed files with 9 additions and 1 deletions
|
|
@ -490,6 +490,7 @@ oml.ui.peersPanel = function() {
|
|||
}
|
||||
],
|
||||
items: folder.items,
|
||||
keys: ['local'],
|
||||
max: 1,
|
||||
sort: [{key: 'index', operator: '+'}],
|
||||
sortable: folder.id == 'peers',
|
||||
|
|
|
|||
|
|
@ -45,6 +45,9 @@ oml.ui.statusIcon = function(user, index) {
|
|||
if (user.id != oml.user.id && data.id == oml.user.id && data.online) {
|
||||
return status == 'unknown' ? 'disconnected' : status;
|
||||
}
|
||||
if (data.local) {
|
||||
return 'connected';
|
||||
}
|
||||
if (!oml.user.online) {
|
||||
return 'unknown';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue