remove unnecessary check
This commit is contained in:
parent
db226c5706
commit
603e98d0bf
|
@ -1050,9 +1050,7 @@ def handle_reply(envelope, msg: Message, rcpt_to: str) -> (bool, str):
|
||||||
email_log.sl_message_id = sl_message_id
|
email_log.sl_message_id = sl_message_id
|
||||||
|
|
||||||
# sanity check to make sure the message id hasn't been added before
|
# sanity check to make sure the message id hasn't been added before
|
||||||
if not MessageIDMatching.get_by(
|
if not MessageIDMatching.get_by(original_message_id=original_message_id):
|
||||||
sl_message_id=sl_message_id
|
|
||||||
) and not MessageIDMatching.get_by(original_message_id=original_message_id):
|
|
||||||
# original_message_id might be None
|
# original_message_id might be None
|
||||||
if original_message_id:
|
if original_message_id:
|
||||||
MessageIDMatching.create(
|
MessageIDMatching.create(
|
||||||
|
|
Loading…
Reference in New Issue