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

Minor fix to the notification checks #198

Merged
merged 1 commit into from
Apr 27, 2022

Commits on Apr 27, 2022

  1. Minor fix to the notification checks

    To ensure that we don't fail if we have more permissions than requested
    e-mission/e-mission-docs#722 (comment)
    
    Without this fix, having sound enabled for app notifications would cause the
    checks to fail to fail, since the requested flags = 5 and the actual flags = 7
    
    With this fix, we bitwise and the two values to remove the excess permissions.
    7 (111) & 5 (101) = 101 = 5 = requested permissions
    shankari committed Apr 27, 2022
    Configuration menu
    Copy the full SHA
    d3dbf83 View commit details
    Browse the repository at this point in the history