Skip to content

Commit

Permalink
Merge pull request #17 from jeremiah-k/main
Browse files Browse the repository at this point in the history
Fixed plugins system bug properly this time (I think)
  • Loading branch information
jeremiah-k authored Apr 27, 2023
2 parents 74f6458 + daf4c72 commit 213e98b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,10 @@ def on_meshtastic_message(packet, loop=None):
# Plugin functionality
for plugin in plugins:
plugin.configure(matrix_client, meshtastic_interface)
plugin.handle_meshtastic_message(packet, formatted_message, longname, meshnet_name)
asyncio.run_coroutine_threadsafe(
plugin.handle_meshtastic_message(packet, formatted_message, longname, meshnet_name),
loop=loop,
)

for room in matrix_rooms:
if room["meshtastic_channel"] == channel:
Expand Down

0 comments on commit 213e98b

Please sign in to comment.