Meshtastic-Apple/Meshtastic/Meshtastic.xcdatamodeld
Garth Vander Houwen b30dc8645a
2.7.6 Working Changes (#1479)
* Bump version

* Message list performance fixes into 2.7.6 (#1475)

* Remove extra want config call when adding a contact

* App badge and unnecessary notification fixes (#1455)

* - Fix for app badge not going to zero if a message arrives while you have that chat open
- Fix for push notifications popping up when a message is received while that chat is open

* Fix for cancelling notifications, works now. And scroll to bottom of conversation upon new message

* Fix: Channels help grammer fix (#1452)

* remove outdated TCP not available on Apple devices (#1450)

* Update initial onboarding view

* remove toggle gating for mac

* Update crash reporting opt out in real time

* Update onboarding text

* Use mDNS text records for node name

* TCP IP and port on the connection screen

* Hide app icon chooser on mac

* Infinite loop hang bugfixes and performance improvements for both `UserMessageList` and `ChannelMessageList` (#1465)

* 2.7.5 Working Changes (#1460)

* Remove extra want config call when adding a contact

* App badge and unnecessary notification fixes (#1455)

* - Fix for app badge not going to zero if a message arrives while you have that chat open
- Fix for push notifications popping up when a message is received while that chat is open

* Fix for cancelling notifications, works now. And scroll to bottom of conversation upon new message

* Fix: Channels help grammer fix (#1452)

* remove outdated TCP not available on Apple devices (#1450)

* Update initial onboarding view

* remove toggle gating for mac

* Update crash reporting opt out in real time

* Update onboarding text

---------

Co-authored-by: Gnome Adrift <646322+gnomeadrift@users.noreply.github.com>
Co-authored-by: Zain Kergaye <62440012+ZainKergaye@users.noreply.github.com>
Co-authored-by: NillRudd <102033730+NillRudd@users.noreply.github.com>

* UserEntity: add mostRecentMessage and unreadMessages with early exit when lastMessage is nil, and fetch 1 row (not N) otherwise

* UserList: replace 5 slow calls to user.messageList with new fast calls

* NodeList: always put the connected node at the top of list (if it matches the node filters)

* ChannelEntity: add faster mostRecentPrivateMessage and unreadMessages which fetch 1 row (not N)

* ChannelList: replace 5 calls to channel.allPrivateMessage with new fast calls

* Fix incorrect appState.unreadDirectMessages calculations

* MyInfoEntity: also fix unreadMessages count here to be fast, and use it for appState.unreadChannelMessages

* UserMessageList: use @FetchRequest to prevent the N^2 behavior that was happening in calls to allPrivateMessages

* Refactor ChannelEntityExtension and MyInfoEntityExtension to be more similar to UserEntityExtension

* Remove SwiftUI-infinite-loop-causing `.id(redrawTapbacksTrigger)` in ChannelMessageList and UserMessageList (duplicate row ids)

* MyInfoEntityExtension: exclude emoji tapbacks (which never get marked as read anyway) from unread message count

* Add SaveChannelLinkData so MessageText and MeshtasticApp can use .sheet(item: ...) and avoid infinite loop hang due to Binding rebuild

* ChannelMessageList and UserMessageList: switch to stable messageId for ForEach SwiftUI row identity

* ChannelMessageList and UserMessageList: debouncedScrollToBottom; keyboardWillShowNotification/keyboardDidShowNotification

* ChannelMessageList and UserMessageList: scroll to bottom onFirstAppear

* ChannelMessageList and UserMessageList: block spurious markMessagesAsRead when this View is not active

---------

Co-authored-by: Garth Vander Houwen <garth@meshtastic.com>
Co-authored-by: Gnome Adrift <646322+gnomeadrift@users.noreply.github.com>
Co-authored-by: Zain Kergaye <62440012+ZainKergaye@users.noreply.github.com>
Co-authored-by: NillRudd <102033730+NillRudd@users.noreply.github.com>

* message-list-performance: revert scrolling changes (#1472)

* Revert e0f0b4a0f7 (ChannelMessageList and UserMessageList: scroll to bottom onFirstAppear)

* Revert "ChannelMessageList and UserMessageList: debouncedScrollToBottom; keyboardWillShowNotification/keyboardDidShowNotification"

This reverts commit ee1a7c4415.

---------

Co-authored-by: Gnome Adrift <646322+gnomeadrift@users.noreply.github.com>
Co-authored-by: Zain Kergaye <62440012+ZainKergaye@users.noreply.github.com>
Co-authored-by: NillRudd <102033730+NillRudd@users.noreply.github.com>
Co-authored-by: Jake-B <jake-b@users.noreply.github.com>
Co-authored-by: Mike Robbins <mrobbins@alum.mit.edu>

* Explicitly set unmessagable, seems unnessary

* Add back missing mesh map features

* Fix: "Retrieving nodes" significantly slower after reconnect  extracted from #1424 (#1477)

* Fix: "Retrieving nodes" significantly slower after reconnect (#1424)

The node database retrieval was calling context.save() for every single
NodeInfo packet received (250 saves for 250 nodes). This caused severe
performance degradation on reconnect when CoreData had accumulated state.

Root Cause:
- nodeInfoPacket() called context.save() immediately for each node
- With 250 nodes, this meant 250 individual CoreData save operations
- On first connection, CoreData is fresh and fast
- On reconnect, CoreData has accumulated change tracking, undo management,
  and memory pressure, making each save progressively slower
- This resulted in 10+ second retrieval times vs 1-2 seconds initially

Solution:
- Added deferSave parameter to nodeInfoPacket() function
- During database retrieval (.retrievingDatabase state), defer all saves
- Perform a single batch save when database retrieval completes
  (when NONCE_ONLY_DB configCompleteID is received)
- This reduces 250 saves to 1 save

Performance Impact:
- Eliminates N individual saves during node database sync
- Reduces database retrieval time back to 1-2 seconds on reconnect
- Matches first-connection performance consistently

Fixes #1424

* Revert *MessageListUnified files

---------

Co-authored-by: Martin Bogomolni <martinbogo@gmail.com>
Co-authored-by: Jake-B <jake-b@users.noreply.github.com>

* Hide route lines filter from mesh map

* Mesh Map: fuzz imprecise locations so they're distinguishable and clickable at the highest zoom levels (#1478)

Co-authored-by: Garth Vander Houwen <garth@meshtastic.com>

* Fix bad merge

* Update Meshtastic/Extensions/CoreData/UserEntityExtension.swift

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update Meshtastic/Views/Nodes/Helpers/Map/MapContent/MeshMapContent.swift

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update Meshtastic/Extensions/CoreData/ChannelEntityExtension.swift

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update Meshtastic/Extensions/CoreData/MyInfoEntityExtension.swift

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update Meshtastic/Extensions/CoreData/ChannelEntityExtension.swift

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Keep list of previous manual connections (#1484)

* Keep list of previous manual connections

* More descriptive manual connection rows

* Merge fixes and new way to show IP on Connect view

---------

Co-authored-by: Jake-B <jake-b@users.noreply.github.com>

* Show who relayed messages (#1486)

* Add identification for node that relayed text messages and add count for ammount of relayers of your message

* Ack Relays

* upsertPositionPacket: don't use future timestamps to set node's lastHeard (#1488)

* R1 NEO

* Neo

* Update Meshtastic/Views/Settings/AppSettings.swift

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Remove bad if

* Git rid of extra environment variable

* Update Meshtastic/Accessory/Transports/TCP/TCPTransport.swift

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* MeshMap performance: quick wins (#1490)

* MeshMap: change onMapCameraChange frequency to .onEnd so that zooming doesn't cause continuous SwiftUI reevaluation on every frame

* MeshMapContent: factor out reducedPrecisionMapCircles into a separate function

* MeshMapContent: when multiple reducedPrecisionCircles have the same (lat,lon,radius), just draw one (big perf boost in dense areas)

* NodeMap performance improvements for high # positions history (#1480)

* NodeMapContent: move Route Lines out of ForEach

* NodeMapContent: move Convex Hull out of ForEach

* NodeMapContent: Replace `position.nodePosition?` with `node`

* NodeMapContent: drop unnecessary LazyVStack in showNodeHistory

* NodeMapContent: hoist out nodeColorSwift

* Move lineCoords, loraCoords calculations within showRouteLines, showConvexHull respectively

* Hoist out repeated node.metadata?.positionFlags lookups / PositionFlags creation

* NodeMapContent: remove unused @State

* NodeMapSwiftUI: add NodeMapContentEquatableWrapper and NodeMapContentSignature to prevent frequent NodeMapContent recomputation and infinite render loops

* NodeMapSwiftUI: disable animation during SwiftUI transactions

* NodeMapContent: hoist nodeBorderColor and set allowsHitTesting(false) on history point views

* NodeMapContent: prerenderHistoryPointCircle and prerenderHistoryPointArrow to avoid thousands of vector draw operations

* NodeMapContent: Shared coordinate list for Route Lines and Convex Hull

* NodeMapContent.prerenderHistoryPointArrow: add .frame(width: 16, height: 16)

* Fix wantRangeTestPackets to correctly follow rangeTestConfig.enabled (#1489)

* Fix interval drop down formatter

* Clean up channel qr code functionality.

* perferredPeripheralId fix

* Set opt in

* Retry once 5 second timer. dont throw the error

* Queue for peripherals

* Fix: hoplimit of dms would always fallback to hops away of the node even when configured hops was higher (#1495)

* fix hops setting in dms

* Fix hops for exchange position

* Final fix

* Don't favorite client base

* Update device hardware

* Prevent nil environment metrics

* Bump datadog sdk

* fix setting device telemetry enabled (#1515)

* Update Muzi R1 Neo to actively supported

* fix setting device telemetry enabled

---------

Co-authored-by: Jonathan Bennett <jbennett@incomsystems.biz>
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>

* Don't subscribe to mqtt topic if downlink is not on (#1501)

* Dont sub if no downlink

* moved reload mqtt connect config

* Preview enabled in connected devices (#1509)

* Update Muzi R1 Neo to actively supported

* Preview enabled in connected devices

* Fixing indentation

* Fixing indentation

---------

Co-authored-by: Jonathan Bennett <jbennett@incomsystems.biz>
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>

* UpdateCoreData.updateAnyPacketFrom: mirror firmware's lastHeard/snr/rssi/hopsAway update logic from NodeDB::updateFrom (#1492)

* `CLIENT_BASE` add-favorite/role-change confirmation dialog (#1493)

* FavoriteNodeButton: refactor task out

* AccessoryManager.connectedDeviceRole helper

* FavoriteNodeButton: show confirmation dialog when a CLIENT_BASE is trying to add a favorite

* addContactFromURL: add comment referencing upcoming change in https://github.com/meshtastic/firmware/pull/8495

* DeviceConfig: role picker: show a warning when selecting CLIENT_BASE, similar to warning shown for ROUTER

* Adjust device configuration Client Base warning text

* Compass view (#1521)

* Added compass view

* Added Compass View

* Node colors in compass

* Update Muzi R1 Neo to actively supported

* Update PositionPopover.swift

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update CompassView.swift

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update CompassView.swift

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update Meshtastic/Views/Helpers/CompassView.swift

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update Meshtastic/Views/Helpers/CompassView.swift

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Benjamin Faershtein <119711889+RCGV1@users.noreply.github.com>
Co-authored-by: Jonathan Bennett <jbennett@incomsystems.biz>
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Remove discovery queue

* revert problematic retry functionalliy

* format file

* Update & improve zh-Hans translation (#1523)

* Update Muzi R1 Neo to actively supported

* update & improve zh-Hans translation

rt

---------

Co-authored-by: Jonathan Bennett <jbennett@incomsystems.biz>
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>

* Update protobufs to 2.7.1

* Add long-turbo preset

* Disable Range Test module when primary channel is public/unsecured (#1512)

* Update Muzi R1 Neo to actively supported

* Disable Range Test module when primary channel is public/unsecured

Updated RangeTestConfig.swift to determine whether the primary channel (index 0) is operating without encryption or with a 1-byte minimal PSK.

Disabled Range Test UI controls when on a public/default channel to prevent user interaction.

Added safety enforcement in the save operation: Range Test enabled flag is automatically forced to false before sending updates to the device.

Introduced a computed property isPrimaryChannelPublic following existing code patterns and security indicators (e.g., hexDescription PSK length).

Matches the behavior implemented in the Android client for consistent policy across platforms.

---------

Co-authored-by: Jonathan Bennett <jbennett@incomsystems.biz>
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>

* Add new device images

* Remove print statement, get rid of cut and paste error

---------

Co-authored-by: Gnome Adrift <646322+gnomeadrift@users.noreply.github.com>
Co-authored-by: Zain Kergaye <62440012+ZainKergaye@users.noreply.github.com>
Co-authored-by: NillRudd <102033730+NillRudd@users.noreply.github.com>
Co-authored-by: Jake-B <jake-b@users.noreply.github.com>
Co-authored-by: Mike Robbins <mrobbins@alum.mit.edu>
Co-authored-by: Martin Bogomolni <martinbogo@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: jake-b <1012393+jake-b@users.noreply.github.com>
Co-authored-by: Benjamin Faershtein <119711889+RCGV1@users.noreply.github.com>
Co-authored-by: Jonathan Bennett <jbennett@incomsystems.biz>
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
Co-authored-by: Charles Pinesky <25388414+Vaidios@users.noreply.github.com>
Co-authored-by: Radio <35003866+radiolee@users.noreply.github.com>
Co-authored-by: Jason Houk <dubsectordevelopment@gmail.com>
2025-12-21 12:15:01 -08:00
..
MeshtasticDataModel.xcdatamodel Filter out emoji so they don't show twice in channel messages 2022-11-18 20:08:32 -08:00
MeshtasticDataModelV 23.xcdatamodel Add cal topo, wip firmware page 2023-12-30 09:21:42 -08:00
MeshtasticDataModelV 24.xcdatamodel Update protos, at ignoreMQTT lora config setting 2024-01-20 17:34:57 -08:00
MeshtasticDataModelV 25.xcdatamodel Add via mqtt, does not seem to be working with the client proxy 2024-02-05 23:02:33 -08:00
MeshtasticDataModelV 26.xcdatamodel Store and Forward updates 2024-02-12 16:35:29 -08:00
MeshtasticDataModelV 27.xcdatamodel feature: add power configuration 2024-02-21 00:07:17 -07:00
MeshtasticDataModelV 28.xcdatamodel Hops away! 🐰 2024-03-02 16:38:59 -08:00
MeshtasticDataModelV 29.xcdatamodel Hops away! 🐰 2024-03-02 16:38:59 -08:00
MeshtasticDataModelV 30.xcdatamodel Try and use less ram on the mesh map 2024-03-23 18:01:20 -07:00
MeshtasticDataModelV 31.xcdatamodel Mqtt config updates 2024-03-26 13:26:23 -07:00
MeshtasticDataModelV 34.xcdatamodel Finish up route list 2024-04-14 14:51:59 -07:00
MeshtasticDataModelV 35.xcdatamodel uptime! 2024-04-15 19:32:36 -07:00
MeshtasticDataModelV 36.xcdatamodel Core data updates 2024-06-02 09:45:56 -07:00
MeshtasticDataModelV 37.xcdatamodel Core data updates 2024-06-02 09:45:56 -07:00
MeshtasticDataModelV 38.xcdatamodel Add device logging config, update protobufs 2024-06-23 07:36:03 -07:00
MeshtasticDataModelV 39.xcdatamodel Assorted version updates and core data cleanup 2024-07-09 08:08:08 -07:00
MeshtasticDataModelV 40.xcdatamodel Make some logs public 2024-07-14 23:31:46 -07:00
MeshtasticDataModelV 41.xcdatamodel Remove lightly used receivedTimestamp 2024-07-31 20:56:09 -07:00
MeshtasticDataModelV 42.xcdatamodel Admin message session passkeys 2024-08-18 08:36:30 -07:00
MeshtasticDataModelV 43.xcdatamodel Upcate live activity to use the new local stats protobuf 2024-08-24 18:44:08 -07:00
MeshtasticDataModelV 44.xcdatamodel Trace route mockup 2024-09-22 23:31:26 -07:00
MeshtasticDataModelV 45.xcdatamodel Remove serial 2024-10-05 13:52:38 -07:00
MeshtasticDataModelV 46.xcdatamodel Detection sensor trigger types 2024-10-11 18:18:45 -07:00
MeshtasticDataModelV 47.xcdatamodel Add ignore node button 2024-12-13 21:11:12 -08:00
MeshtasticDataModelV 48.xcdatamodel Add power metrics widgets for node detail screen 2025-01-25 00:13:12 -08:00
MeshtasticDataModelV 49.xcdatamodel Overhaul Store and Forward 2025-03-15 00:02:43 -07:00
MeshtasticDataModelV 50.xcdatamodel Implement unmessagable 2025-05-15 07:44:12 -07:00
MeshtasticDataModelV 51.xcdatamodel capitilize node list, update unmessagable logic, clean up contact list filtering 2025-05-21 11:48:47 -07:00
MeshtasticDataModelV 52.xcdatamodel Map report opt in plumbing 2025-05-30 12:37:14 -07:00
MeshtasticDataModelV 53.xcdatamodel 12 hour clock display config value 2025-06-15 20:04:21 -07:00
MeshtasticDataModelV 54.xcdatamodel 2.7.4 Working Changes (#1415) 2025-10-05 17:51:18 -07:00
MeshtasticDataModelV 55.xcdatamodel 2.7.6 Working Changes (#1479) 2025-12-21 12:15:01 -08:00
MeshtasticDataModelV2.xcdatamodel Add use pwm to external notification config 2022-11-29 21:24:20 -08:00
MeshtasticDataModelV3.xcdatamodel Add oled type override to display settings 2022-12-11 14:14:08 -08:00
MeshtasticDataModelV4.xcdatamodel Make addresses, links and phone numbers clickable in messages 2022-12-23 23:05:16 -08:00
MeshtasticDataModelV5.xcdatamodel More waypoints 2023-01-13 22:30:10 -08:00
MeshtasticDataModelV6.xcdatamodel update protos clean up config warnings 2023-01-29 08:28:44 -08:00
MeshtasticDataModelV7.xcdatamodel Update protobufs, show alert and clear database on change of preferred peripheral 2023-02-17 10:35:37 -08:00
MeshtasticDataModelV8.xcdatamodel Pin Icons for device roles 2023-02-21 19:03:11 -08:00
MeshtasticDataModelV9.xcdatamodel * Device Config Updates (Rebroadcast modes, nodeinfobroadcastsecs) 2023-03-05 23:01:09 -08:00
MeshtasticDataModelV10.xcdatamodel Smart broadcast updates 2023-03-27 10:43:01 -07:00
MeshtasticDataModelV11.xcdatamodel Update protos, add fields to core data 2023-04-05 12:10:31 -07:00
MeshtasticDataModelV12.xcdatamodel Update data fields 2023-05-04 22:20:22 -07:00
MeshtasticDataModelV13.xcdatamodel Managed Device 2023-05-13 20:50:20 -07:00
MeshtasticDataModelV14.xcdatamodel Fix some bugs, update protos, remove deprecated and duplicate my info fields. 2023-06-07 17:19:36 -07:00
MeshtasticDataModelV15.xcdatamodel More MQTT updates 2023-08-06 17:41:46 -07:00
MeshtasticDataModelV16.xcdatamodel Add timestamps to detection sensor messages 2023-08-22 13:22:01 -05:00
MeshtasticDataModelV17.xcdatamodel Merge branch '2.2.5_Working_Changes' 2023-09-10 14:25:13 -07:00
MeshtasticDataModelV18.xcdatamodel Log packets being sent to and coming back from the phone 2023-09-24 18:44:04 -07:00
MeshtasticDataModelV19.xcdatamodel Routes 2023-11-21 22:39:42 -08:00
MeshtasticDataModelV20.xcdatamodel Settings rework - new async location handler 2023-12-06 12:32:17 -08:00
MeshtasticDataModelV21.xcdatamodel Initial trace route log 2023-12-08 11:41:29 -08:00
MeshtasticDataModelV22.xcdatamodel Add has positions logic to trace routes and core data. 2023-12-21 12:30:04 -08:00
MeshtasticDataModelV32.xcdatamodel Add node num to text search 2024-04-02 07:00:07 -07:00
MeshtasticDataModelV33.xcdatamodel Timezone 2024-04-08 11:41:54 -07:00
.xccurrentversion 2.7.4 Working Changes (#1415) 2025-10-05 17:51:18 -07:00