File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -429,6 +429,7 @@ async def update_own_read_receipt(
429
429
if not puppet .is_real_user :
430
430
return
431
431
432
+ self .log .debug ("Handling own read receipt: %s" , update )
432
433
if isinstance (update , UpdateReadChannelInbox ):
433
434
portal = await po .Portal .get_by_tgid (TelegramID (update .channel_id ))
434
435
elif isinstance (update .peer , PeerChat ):
@@ -442,13 +443,17 @@ async def update_own_read_receipt(
442
443
return
443
444
444
445
if not portal or not portal .mxid :
446
+ self .log .debug (f"Dropping own read receipt in unknown chat ({ update .peer } )" )
445
447
return
446
448
447
449
tg_space = portal .tgid if portal .peer_type == "channel" else self .tgid
448
450
message = await DBMessage .get_one_by_tgid (
449
451
TelegramID (update .max_id ), tg_space , edit_index = - 1
450
452
)
451
453
if not message :
454
+ self .log .debug (
455
+ f"Dropping own read receipt: unknown message { update .max_id } @{ tg_space } "
456
+ )
452
457
return
453
458
454
459
await puppet .intent .mark_read (portal .mxid , message .mxid )
You can’t perform that action at this time.
0 commit comments