fix case where msg[headers.IN_REPLY_TO] can be non str

This commit is contained in:
Son 2021-11-08 11:21:01 +01:00
parent 827b90432c
commit 0e24513bcf
1 changed files with 1 additions and 1 deletions

View File

@ -842,7 +842,7 @@ def replace_sl_message_id_by_original_message_id(msg):
# Replace SL Message-ID by original one in In-Reply-To header
if msg[headers.IN_REPLY_TO]:
matching: MessageIDMatching = MessageIDMatching.get_by(
sl_message_id=msg[headers.IN_REPLY_TO]
sl_message_id=str(msg[headers.IN_REPLY_TO])
)
if matching:
LOG.d(