Add missing None check for outbound read receipts
This commit is contained in:
parent
59c7f1fd2e
commit
33a8218eee
|
@ -157,6 +157,7 @@ class MatrixHandler(BaseMatrixHandler):
|
||||||
if not user.is_connected:
|
if not user.is_connected:
|
||||||
return
|
return
|
||||||
message = await DBMessage.get_by_mxid(event_id, portal.mxid)
|
message = await DBMessage.get_by_mxid(event_id, portal.mxid)
|
||||||
|
if message:
|
||||||
await user.client.mark_read(portal.channel_props, message.ktid)
|
await user.client.mark_read(portal.channel_props, message.ktid)
|
||||||
|
|
||||||
async def handle_ephemeral_event(
|
async def handle_ephemeral_event(
|
||||||
|
|
Loading…
Reference in New Issue