mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-08-01 06:22:54 +02:00
Enable bot responses to ourselves
This commit is contained in:
@@ -322,8 +322,8 @@ async def create_dm_message_from_decrypted(
|
||||
# Update contact's last_contacted timestamp (for sorting)
|
||||
await ContactRepository.update_last_contacted(conversation_key, received)
|
||||
|
||||
# Run bot if enabled (for incoming DMs only, not historical decryption or outgoing)
|
||||
if trigger_bot and not outgoing:
|
||||
# Run bot if enabled (for all real-time DMs, including our own outgoing messages)
|
||||
if trigger_bot:
|
||||
from app.bot import run_bot_for_message
|
||||
|
||||
# Get contact name for the bot
|
||||
@@ -339,7 +339,7 @@ async def create_dm_message_from_decrypted(
|
||||
channel_name=None,
|
||||
sender_timestamp=decrypted.timestamp,
|
||||
path=path,
|
||||
is_outgoing=False,
|
||||
is_outgoing=outgoing,
|
||||
)
|
||||
|
||||
return msg_id
|
||||
|
||||
Reference in New Issue
Block a user