syncthing / syncthing-android

Wrapper of syncthing for Android.
https://syncthing.net/
Mozilla Public License 2.0
3.38k stars 378 forks source link

Fix incorrect initialization of Info notification channel #2040

Closed the-eclectic-dyslexic closed 8 months ago

the-eclectic-dyslexic commented 8 months ago

I was using syncthing as a reference for handling notifications in my app, when I noticed that the "Info" channel appears to be incorrectly initialized.

It looks like it was intended for the Info channel not to vibrate, not to make sound, but only to show a badge. This might be redundant as it's possible every notification pushed to this channel already follows those standards, I am unsure. However, the code used to initialize the Info channel was actually modifying the already created Persistent channel, and thus did nothing.

This pull request fixes, what I think are typos which originated from a copy and paste of the code used to create the Persistent channel.

I think these lines should either be changed as per this pull request, or removed entirely.