mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-05-09 23:05:10 +02:00
Fix issue where last_seen is incremented by events that definitely shouldn't increment it. Fixes #201.
This commit is contained in:
@@ -252,6 +252,11 @@ async def _store_direct_message(
|
||||
|
||||
if update_last_contacted_key:
|
||||
await contact_repository.update_last_contacted(update_last_contacted_key, received_at)
|
||||
# Incoming DMs are direct RF evidence that this contact transmitted;
|
||||
# outgoing DMs are our own send and must not bump the contact's
|
||||
# last_seen.
|
||||
if not outgoing:
|
||||
await contact_repository.touch_last_seen(update_last_contacted_key, received_at)
|
||||
|
||||
return message
|
||||
|
||||
|
||||
Reference in New Issue
Block a user