Introduced stop signals and dependency gating for operations. Added mechanism to RMASS message sending protocol (Confirmed Working)
This commit is contained in:
@@ -4,6 +4,12 @@ from . import synapsenotify
|
||||
|
||||
name = "RMASS Message Push"
|
||||
|
||||
alias = "rmassmessagepush"
|
||||
|
||||
depends = [
|
||||
"synapsegetroomalias",
|
||||
]
|
||||
|
||||
kind = "action"
|
||||
|
||||
showstatus = True
|
||||
@@ -86,6 +92,12 @@ filters = [
|
||||
"filtervalue": "m.image",
|
||||
"print": f"Image detected. Pushing attachment",
|
||||
},
|
||||
{
|
||||
"filterkey": "event_id",
|
||||
"operator": "==",
|
||||
"filtervalue": {"outputs": "db_event_id"},
|
||||
"print": f"Message already delivered. Bypassing {name}",
|
||||
},
|
||||
# {
|
||||
# "filterkey": "matrix_sender",
|
||||
# "operator": "!=",
|
||||
|
||||
Reference in New Issue
Block a user