Skip to content

Update notifications.py - #651

Closed
ryankrage77 wants to merge 1 commit into
Nachtzuster:mainfrom
ryankrage77:main
Closed

ryankrage77 wants to merge 1 commit into
Nachtzuster:mainfrom
ryankrage77:main

Conversation

@ryankrage77

Copy link
Copy Markdown

Fixes an issue where Matrix notifications only send successfully once when birdnet_analysis service starts, then all subsequent notifications fail.

apobj currently persists for the lifetime of birdnet_analysis, causing the Matrix transaction ID to be re-used across messages, and subsequent messages to to be silently duplicated.

This minimal fix re-creates apobj per notification, so it generates a new transaction ID each time. In my testing, this fixes the issue and notifications work as expected again.

re-create apobj to avoid Matrix transaction IDs being re-used, which causes silent message duplicates.
@ryankrage77 ryankrage77 closed this by deleting the head repository Sep 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant