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

Sketch removing notification when message read #864

Closed
wants to merge 9 commits into from

Conversation

gnprice
Copy link
Member

@gnprice gnprice commented Aug 2, 2024

Fixes #341.

This is a draft that isn't meant to be merged. But in my manual testing, it does work!

I originally wrote this in March, as described at #341 (comment) , and it became the impetus to start work on #351 converting to use Pigeon. So the bulk of that draft branch turned into #592.

This draft PR is the result of me taking the rest of the material from that draft branch and rebasing it. Some of it may be a bit rough because it was part of our first experiment with Pigeon. The commit structure is rough because I left it mostly as it was in the draft branch, only squashing a couple of fixup commits.

Things this needs before we can ship it:

  • Use the binding instead of the host API directly, so tests are possible.

  • Write a few tests.

  • Clean up the commits. A good structure might look like: add one Pigeon method, add the other, then make the lib/notifications/display.dart changes.

    To do that, probably just squash everything together and then split into new commits.

  • Maybe handle the TODO on getActiveNotifications to accept a list of extras to care about, so that we don't take a whole bunch of irrelevant extras and try to serialize them back to Dart.

So @rajveermalviya please take it from here for #341.

gnprice added 9 commits August 2, 2024 15:11
The group summaries naturally don't have this extra.

And on the other hand both the group summaries and the individual
notifications have a wide range of other extras we didn't put there,
with a variety of types.
Android Studio makes this change automatically when I open the android/
subtree as a project.

Probably we should add some form of this to the repo so Android Studio
doesn't try to do it automatically.  But a mergeable version will need
to include the referenced `.iml` file too.
@gnprice
Copy link
Member Author

gnprice commented Aug 21, 2024

This became #878, which is now merged. Thanks @rajveermalviya!

@gnprice gnprice closed this Aug 21, 2024
@gnprice gnprice deleted the pr-notif-remove branch August 21, 2024 23:30
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.

Remove notifications when messages are read, on Android
1 participant