Add missing None check for outbound read receipts

This commit is contained in:
Andrew Ferrazzutti 2022-04-12 01:30:29 -04:00
parent 59c7f1fd2e
commit 33a8218eee
1 changed files with 2 additions and 1 deletions

View File

@ -157,6 +157,7 @@ class MatrixHandler(BaseMatrixHandler):
if not user.is_connected:
return
message = await DBMessage.get_by_mxid(event_id, portal.mxid)
if message:
await user.client.mark_read(portal.channel_props, message.ktid)
async def handle_ephemeral_event(