fix: nodelist sort by viaMqtt

This commit is contained in:
andrekir 2024-11-15 06:46:37 -03:00
parent 1a86de224d
commit 02af81aeb0
2 changed files with 3 additions and 3 deletions

View file

@ -69,7 +69,7 @@ interface NodeInfoDao {
ELSE hops_away
END
WHEN :sort = 'channel' THEN channel
WHEN :sort = 'via_mqtt' THEN long_name LIKE '%(MQTT)' -- viaMqtt
WHEN :sort = 'via_mqtt' THEN via_mqtt
ELSE 0
END ASC,
last_heard DESC

View file

@ -1394,8 +1394,8 @@ class MeshService : Service(), Logging {
if (isLicensed) clearPublicKey()
if (info.viaMqtt) longName = "$longName (MQTT)"
}
it.longName = info.user.longName
it.shortName = info.user.shortName
it.longName = it.user.longName
it.shortName = it.user.shortName
}
if (info.hasPosition()) {