-
Notifications
You must be signed in to change notification settings - Fork 271
fix: drop unique index on mail_messages_snoozed.message_id #8800
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
ab3c0a3
to
276dfe5
Compare
throw $e; | ||
} | ||
|
||
$messageId = $message['messageId']; |
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.
Why would findMessageIdsByThreadRoot return null for messageId?
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.
You're right, messageId shouldn't be null. I just adapted the pattern from the $message->getMessageId(); where the null check was needed.
lib/Service/SnoozeService.php
Outdated
} | ||
|
||
$this->messageSnoozeMapper->deleteByMessageIds(array($messageId)); |
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.
$this->messageSnoozeMapper->deleteByMessageIds(array($messageId)); | |
$this->messageSnoozeMapper->deleteByMessageIds([$messageId]); |
lib/Service/SnoozeService.php
Outdated
} | ||
|
||
$this->messageSnoozeMapper->deleteByMessageIds(array($messageId)); |
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.
$this->messageSnoozeMapper->deleteByMessageIds(array($messageId)); | |
$this->messageSnoozeMapper->deleteByMessageIds([$messageId]); |
Signed-off-by: Johannes Merkel <mail@johannesgge.de>
276dfe5
to
d7e397e
Compare
Fix: #8748
Followup to #8694
I had to rewrite the snooze db insert. Pls check if the throwing of the ServiceException is correct, I'm not quite sure.