Fixed plugin bug properly (I think)

pull/1/head
Jeremiah K 2023-04-26 19:53:10 -05:00
rodzic 74f64584d7
commit daf4c721a3
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -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: