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

Notify Me Later About a Message #3256

Merged
merged 1 commit into from
Aug 31, 2023
Merged

Notify Me Later About a Message #3256

merged 1 commit into from
Aug 31, 2023

Conversation

rapterjet2004
Copy link
Contributor

@rapterjet2004 rapterjet2004 commented Aug 17, 2023

fixes #3221

issue-3221-draft-4.webm
  • Functionality
  • review

🏁 Checklist

  • ⛑️ Tests (unit and/or integration) are included or not needed
  • 🔖 Capability is checked or not needed
  • 🔙 Backport requests are created or not needed: /backport to stable-xx.x
  • 📅 Milestone is set
  • 🌸 PR title is meaningful (if it should be in the changelog: is it meaningful to users?)

@rapterjet2004 rapterjet2004 self-assigned this Aug 17, 2023
@rapterjet2004 rapterjet2004 added high High priority medium Medium priority and removed high High priority labels Aug 17, 2023
@rapterjet2004 rapterjet2004 force-pushed the issue-3221-notify-me-later branch 4 times, most recently from e47dee8 to 3f8ae24 Compare August 25, 2023 15:38
@rapterjet2004 rapterjet2004 marked this pull request as ready for review August 28, 2023 14:03
@rapterjet2004 rapterjet2004 added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Aug 28, 2023
@mahibi
Copy link
Collaborator

mahibi commented Aug 30, 2023

really great @rapterjet2004 👍 👍

there is something wrong with setting custom dates:

  • e.g. when i set a custom reminder for today, it is actually set for tomorrow
  • when i set i to some date next month, it was set to tomorrow or some random other day..
Screen_recording_20230830_104518.mp4

@rapterjet2004
Copy link
Contributor Author

rapterjet2004 commented Aug 30, 2023

@mahibi
Should be fixed now. I forgot to include the selected week of the year when calculating the time in milliseconds. So when you clicked on Friday, September 29th, it would pick the Friday of the current week in August, instead of that week in September.

Also, apparently there was a weird time zone error. The Material Date Picker uses UTC, but doesn't convert it to
local GMT time. I had to offset it by TimeZone.getDefault().getOffset(localTimeInMillis)) when creating the datePicker, and to remove the offset when processing the selected time. Not sure why that wasn't included in the documentation.

@github-actions
Copy link
Contributor

Codacy

Lint

TypemasterPR
Warnings9393
Errors00

SpotBugs

CategoryBaseNew
Correctness99
Dodgy code127127
Internationalization55
Malicious code vulnerability33
Performance88
Security22
Total154154

- Added new Dialog Fragment
- Added API functions for handling reminders
- Added JSON Models for those reminders
- Implemented the reminder functions using MVVM

Signed-off-by: Julius Linus <[email protected]>
@mahibi
Copy link
Collaborator

mahibi commented Aug 31, 2023

@mahibi Should be fixed now. I forgot to include the selected week of the year when calculating the time in milliseconds. So when you clicked on Friday, September 29th, it would pick the Friday of the current week in August, instead of that week in September.

Also, apparently there was a weird time zone error. The Material Date Picker uses UTC, but doesn't convert it to local GMT time. I had to offset it by TimeZone.getDefault().getOffset(localTimeInMillis)) when creating the datePicker, and to remove the offset when processing the selected time. Not sure why that wasn't included in the documentation.

i confirm it's fixed.
rebased on master and enabled auto-merge..

@mahibi mahibi enabled auto-merge August 31, 2023 08:33
@mahibi mahibi merged commit 1672caf into master Aug 31, 2023
13 of 14 checks passed
@delete-merged-branch delete-merged-branch bot deleted the issue-3221-notify-me-later branch August 31, 2023 08:37
@github-actions
Copy link
Contributor

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/3256-talk.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud Talk app.

@AndyScherzinger AndyScherzinger added this to the 17.1.0 milestone Aug 31, 2023
Copy link
Contributor

github-actions bot commented Apr 3, 2024

Hello there,
Thank you so much for taking the time and effort to create a pull request to our Nextcloud project.

We hope that the review process is going smooth and is helpful for you. We want to ensure your pull request is reviewed to your satisfaction. If you have a moment, our community management team would very much appreciate your feedback on your experience with this PR review process.

Your feedback is valuable to us as we continuously strive to improve our community developer experience. Please take a moment to complete our short survey by clicking on the following link: https://cloud.nextcloud.com/apps/forms/s/i9Ago4EQRZ7TWxjfmeEpPkf6

Thank you for contributing to Nextcloud and we hope to hear from you soon!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Notify me later about this message
3 participants