mirror of
https://github.com/meshtastic/Meshtastic-Android.git
synced 2026-04-20 22:23:37 +00:00
feat: Refactor MeshService into smaller, single-responsibility components (#4108)
Signed-off-by: James Rich <2199651+jamesarich@users.noreply.github.com>
This commit is contained in:
parent
0fa690eb61
commit
b3ebe760dd
35 changed files with 3568 additions and 2816 deletions
|
|
@ -329,7 +329,7 @@ interface PacketDao {
|
|||
val newIndex = if (oldPSK != null) pskToNewIndex[oldPSK] else null
|
||||
if (oldPSK != null && newIndex != null && oldIndex != newIndex) {
|
||||
// Rebuild contact_key with the new index, keeping the rest unchanged
|
||||
val oldKeySuffix = packet.contact_key.drop(1) // removes only the channelIndex prefix
|
||||
val oldKeySuffix = packet.contact_key.dropWhile { it.isDigit() }
|
||||
val newContactKey = "$newIndex$oldKeySuffix"
|
||||
update(packet.copy(contact_key = newContactKey, data = packet.data.copy(channel = newIndex)))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue