Skip to content

Conversation

@chriselsen
Copy link
Collaborator

@chriselsen chriselsen commented Aug 24, 2025

This PR improves the contact management system by fixing notification issues and adding better error handling.

Changes Made:

  • Contact Events: Only trigger Contact_Change for new contacts, excluding self to prevent duplicate notifications
  • Notification Cleanup: Removed redundant contact online notifications that were causing spam
  • Error Handling: Added try-catch to contact loading with graceful fallback when TAK server is unavailable
  • API Consistency: Changed load() return type from Map<string, Contact> to Contact[] for better consistency
  • Code Cleanup: Removed unused get() method

Bug Fixes:

  • Prevents duplicate contact change notifications
  • Handles TAK server connection failures gracefully
  • Stops self-contact from triggering change events

Fixes #838

- Only trigger Contact_Change events for new contacts, not self
- Remove duplicate contact notifications
- Add error handling to contact loading with graceful fallback
- Change load() return type from Map to Contact array
- Remove unused get() method
@chriselsen chriselsen marked this pull request as ready for review August 24, 2025 01:18
@chriselsen chriselsen added connections TAK server connections and authentication web-frontend Container for all web frontend issues labels Aug 24, 2025
- Add back get() method to AtlasTeam class for contact lookup by UID
- Fixes TypeScript error in PropertyCreator.vue component
@codecov
Copy link

codecov bot commented Aug 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

connections TAK server connections and authentication web-frontend Container for all web frontend issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: User online notifications and display broken with TAK Server version 5.5

1 participant