Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dest: move to DestV1 away from DestType #4020

Merged
merged 5 commits into from
Jul 30, 2024
Merged

dest: move to DestV1 away from DestType #4020

merged 5 commits into from
Jul 30, 2024

Conversation

mastercactapus
Copy link
Member

Description:
Updates code using notification.Dest as a comparable value to use DestHash instead along with updating some signatures to use gadb.DestV1 directly instead of type/value.

- Changed notification.DestType to string for code simplicity
- Updated all related function signatures and usages
- Consolidated enable/disable SQL queries
- Updated methods to use destination-based enable/disable functions
- Simplified contact method parameters to use unified structure
- Simplified destination handling by using gadb.DestV1
- Removed redundant notification package dependency
- Introduced NewDestV1 constructor for gadb.DestV1
- Updated all IsKnownDest method signatures accordingly
- Migrate notification handling to use gadb.DestV1
- Update SQL queries to utilize unified UserContactMethod struct
- Simplify destination hash generation for consistency
- Ensure database functions properly handle unified structure for DestV1
Corrects the parameter used to fetch the original message status by using the destination's ID directly, ensuring accurate lookups.
@mastercactapus mastercactapus merged commit ba9ea1e into master Jul 30, 2024
7 checks passed
@mastercactapus mastercactapus deleted the dest-type-rm branch July 30, 2024 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants