-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Handle silent delete/delete-all push notifications #3969
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
Conversation
| } else if (decryptedPushMessage.deleteAll) { | ||
| notificationManager.cancelAll(); | ||
| } else if (!APP_SPREED.equals(decryptedPushMessage.getApp())) { | ||
| // We ignore Spreed messages for now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please don't!
The server app is cleverly enough. You only get them when there is no Talk app installed for the user. In this case a "linking to the web" notification in the files app is better than nothing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm. This is code done by Mario.
I did not touched it.
I'll test what happens when I remove it.
|
Jep, thats the expected result |
2022cf9 to
d6a73ef
Compare
Codecov Report
@@ Coverage Diff @@
## master #3969 +/- ##
===========================================
- Coverage 6.58% 6.57% -0.01%
Complexity 1 1
===========================================
Files 322 322
Lines 30908 30928 +20
Branches 4408 4410 +2
===========================================
- Hits 2036 2035 -1
- Misses 28576 28597 +21
Partials 296 296
|
Codecov Report
@@ Coverage Diff @@
## master #3969 +/- ##
===========================================
- Coverage 14.35% 14.3% -0.06%
Complexity 1 1
===========================================
Files 329 329
Lines 31017 31023 +6
Branches 4427 4428 +1
===========================================
- Hits 4453 4438 -15
- Misses 25777 25801 +24
+ Partials 787 784 -3
|
|
Rebase might help with spot bugs? |
ad2ad09 to
3078213
Compare
|
Nope,increased scoring... |
This is the reason. But this is because Parceler, so we cannot do much here. |
|
IT test failed: https://www.kaminsky.me/nc-dev/android-integrationTests/9153 |
@tobiasKaminsky filter didn't seem to work. So raise the score? (I guess) |
7e9dd59 to
dc799c2
Compare
dc799c2 to
5ee6693
Compare
|
@tobiasKaminsky spotbugs filter change doesn't seem to work... |
Yes, I am on it, but somehow all regex I am trying just do not work… :/ |
|
not a regex pro but shouldn't |
do not ignore talk messages (will only be sent if no talk app is installed) exclude generated Parcelable Signed-off-by: tobiasKaminsky <[email protected]>
5ee6693 to
51ee4d8
Compare
|
Finally I hope I got it. Escaping $ is ok |
… [skip ci] Signed-off-by: nextcloud-android-bot <[email protected]>
|
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/9405.apk |
Codacy297Lint
SpotBugs (new)
SpotBugs (master)
|
3b31841 Merge pull request #3969 from nextcloud/receivePushDelete 6074c93 Drone: update FindBugs results to reflect reduced error/warning count [skip ci] f28007e OCFileListFragment: Only scroll to top if directory changed (#4058) b061e4d Merge commit '51ee4d88fd0555a945a24b1ab3beba2ffdc79c06' 51ee4d8 handle silent delete/delete-all push notifications do not ignore talk messages (will only be sent if no talk app is installed) exclude generated Parcelable fb6b11f Use product name on rich document, if available (#3971) 4197d3b use proper qa build lib dependency 8c06097 Only compare directories if necessary 403a3e0 Use product name on rich document, if available use placeholder for string reset to master-snapshot fix analysis warning use new translatable string use var vor qa flavor too 9b0a789 Merge pull request #4040 from nextcloud/ezaquarii/remove-findbugs d6b4dee Remove legacy FindBugs tasks from build script 53c9c05 daily dev 20190523


TODO
If a notification is now dismissed, the server sends a silent push notification to all devices and removes the notification in status bar.
This will be in NC17 on server side, but can already merged as this then just does nothing…
Ref: nextcloud/server#15040, nextcloud/notifications#318
Signed-off-by: tobiasKaminsky [email protected]