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

Do not crash on UP unregistered #2334

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

SpiritCroc
Copy link
Contributor

@SpiritCroc SpiritCroc commented Feb 1, 2024

Type of change

  • Feature
  • Bugfix
  • Technical
  • Other :

Content

Motivation and context

Fixes #2304

Tests

  • Register Ntfy as push distributor
  • Remove subscription from the Ntfy app

Tested devices

Tested on SchildiChat-Next only (Oneplus 5 Android 13), but should be simple enough

Checklist

Sign-off

Signed-off-by: Tobias Büttner [email protected]

@SpiritCroc SpiritCroc requested a review from a team as a code owner February 1, 2024 11:03
@SpiritCroc SpiritCroc requested review from jmartinesp and removed request for a team February 1, 2024 11:03
@jmartinesp jmartinesp requested review from bmarty and removed request for jmartinesp February 1, 2024 11:10
Copy link
Member

@bmarty bmarty left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for removing this.
I have checked on my side that when the app is started again, a new registration occured. But I did not get any Push from UnifiedPush, is it working correclty on your side @SpiritCroc ?

Copy link

codecov bot commented Feb 1, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (d4cde9b) 70.07% compared to head (f93c962) 70.08%.
Report is 2 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2334   +/-   ##
========================================
  Coverage    70.07%   70.08%           
========================================
  Files         1352     1352           
  Lines        33243    33242    -1     
  Branches      6875     6875           
========================================
  Hits         23296    23296           
+ Misses        6633     6632    -1     
  Partials      3314     3314           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@SpiritCroc
Copy link
Contributor Author

Thanks for removing this. I have checked on my side that when the app is started again, a new registration occured. But I did not get any Push from UnifiedPush, is it working correclty on your side @SpiritCroc ?

I'm currently able to receive pushs from my self-hosted ntfy just fine from what I can tell. I think I had to reinstall (or rather adb shell pm disable, adb shell pm enable) the distributor app to temporarily switch the app to a different distributor and properly reregister for something I was doing today, but I don't remember if it was related to this issue or just me playing around with the UP-FOSS-FCM-library.

@bmarty bmarty merged commit 69bd18e into element-hq:develop Feb 1, 2024
13 checks passed
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.

Element X crashed after manually deleting ntfy subscription
2 participants