kopia lustrzana https://github.com/mate-dev/meshtastic-matrix-relay
Fixed plugin bug properly (I think)
rodzic
74f64584d7
commit
daf4c721a3
5
main.py
5
main.py
|
@ -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:
|
||||
|
|
Ładowanie…
Reference in New Issue