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

Stop clearing notifications when new notifications are received #4735

Merged
merged 1 commit into from
Jul 21, 2022

Conversation

claucambra
Copy link
Collaborator

With recent changes to notification handling we keep a set of already-notified notification ids and prevent these notifications from being emitted again

A hold-over from previous code is to clear all notifications and replace them with the new set of notifications. With the recent changes this causes a bug where all notifications except newly received ones are removed

This PR stops old notifications from being cleared

@claucambra claucambra self-assigned this Jul 13, 2022
@codecov
Copy link

codecov bot commented Jul 13, 2022

Codecov Report

Merging #4735 (8dfe164) into master (d475386) will increase coverage by 0.14%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #4735      +/-   ##
==========================================
+ Coverage   56.40%   56.54%   +0.14%     
==========================================
  Files         138      138              
  Lines       17069    17069              
==========================================
+ Hits         9628     9652      +24     
+ Misses       7441     7417      -24     
Impacted Files Coverage Δ
src/libsync/syncengine.cpp 85.74% <0.00%> (+0.54%) ⬆️
src/libsync/vfs/cfapi/cfapiwrapper.cpp 77.34% <0.00%> (+1.92%) ⬆️
src/libsync/vfs/cfapi/vfs_cfapi.cpp 86.46% <0.00%> (+2.62%) ⬆️
src/libsync/vfs/cfapi/hydrationjob.cpp 56.45% <0.00%> (+3.76%) ⬆️

@claucambra
Copy link
Collaborator Author

/backport to stable-3.5

Signed-off-by: Claudio Cambra <claudio.cambra@gmail.com>
@claucambra claucambra force-pushed the bugfix/fix-disappearing-notifications branch from 9cdfc77 to 8dfe164 Compare July 21, 2022 11:14
@sonarcloud
Copy link

sonarcloud bot commented Jul 21, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@nextcloud-desktop-bot
Copy link

AppImage file: Nextcloud-PR-4735-8dfe1647ed4115ec6e0e29cb0a1e69ede3d859a1-x86_64.AppImage

To test this change/fix you can simply download above AppImage file and test it.

Please make sure to quit your existing Nextcloud app and backup your data.

@claucambra claucambra merged commit db90f5b into master Jul 21, 2022
@claucambra claucambra deleted the bugfix/fix-disappearing-notifications branch July 21, 2022 11:47
@mgallien mgallien added this to the 3.6.0 milestone Jul 29, 2022
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.

5 participants