element-x-android
e18abd82 - Fix wakelock not stopping early when notifications are disabled

Commit
22 hours ago
Fix wakelock not stopping early when notifications are disabled If notifications for a device are disabled when there is no connection with the HS, the push registration will still exist, so the device can still receive push notifications. In that cases, we were running into an issue where the wakelock for push notifications was started immediately after receiving a push but was never stopped and it ran for 3 minutes until its timeout, keeping the device awake for no reason. This patch changes `DefaultPushHandler` so if we don't need the wakelock it returns `false` and we can stop the wakelock early.
Author
Parents
Loading