mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-10-23 09:42:21 +00:00
Fix issue where last_seen is incremented by events that definitely shouldn't increment it. Fixes #201.
This commit is contained in:
6 files changed
+198
-11
No files matched your search
@@ -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