-
Notifications
You must be signed in to change notification settings - Fork 259
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
fix: Junk/NotJunk flags #10328
base: main
Are you sure you want to change the base?
fix: Junk/NotJunk flags #10328
Conversation
Signed-off-by: SebastianKrupinski <[email protected]>
How do we test this? Found #5370 to change |
@@ -998,8 +998,8 @@ export default { | |||
|
|||
try { | |||
await setEnvelopeFlags(envelope.databaseId, { | |||
$junk: !oldState, | |||
$notjunk: oldState, |
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.
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.
Yes, The UI handles the "$junk" but the backend compares the it as "junk", so in the UI they can all stay as "$junk" but need to have the $ sign stripped of when sent to the backend. The second image of allowed flags is comparison table, the first image is how they are compared/found.
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.
Can you point me to the code that strips the $?
The best way to test is to insert a break point in the OCA\Mail\Service\MailManager::filterFlags() function. That way you can see the values for the table and flag.
This correctly added the front end logic,
But incorrectly changed the back end logic,
|
Issue
Junk and NotJunk flags where not being set due to a invalid comparison. UI was sending "$junk" but it was being compared to "junk".
Allowed flags was also missing "notjunk"