Gated database message mapping behind RMASS message sent status
This commit is contained in:
@@ -15,6 +15,10 @@ resolve = {
|
||||
"get": {
|
||||
"event_id": ["outmessageitem", "event_id"],
|
||||
"path": ["lastmessage", 0, "content", "com.loxthelion.rmass_message_id"],
|
||||
#"matrix_sender": ["outmessageitem", "sender"],
|
||||
#"msg_type": ["outmessageitem", "type"],
|
||||
#"echo_tag": ["outmessageitem", "content", "com.loxthelion.rmass_message_id"],
|
||||
"rmass_sent_status": ["rmass_sent_status"],
|
||||
},
|
||||
}
|
||||
|
||||
@@ -67,11 +71,18 @@ saverow = {
|
||||
],
|
||||
}
|
||||
|
||||
#filters = [
|
||||
# {
|
||||
# "filterkey": "rmass_sent_status",
|
||||
# "operator": "==",
|
||||
# "filtervalue": "fail",
|
||||
# "print": "Failed to send message to RMASS. Continuing...",
|
||||
# },
|
||||
#]
|
||||
|
||||
filters = [
|
||||
{
|
||||
"filterkey": "rmass_sent_status",
|
||||
"operator": "==",
|
||||
"filtervalue": "fail",
|
||||
"print": f"Failed to send message to RMASS. Bypassing save during {name}...",
|
||||
},
|
||||
{
|
||||
"filterkey": "rmass_sent_status",
|
||||
"operator": "==",
|
||||
"filtervalue": "error",
|
||||
"print": f"Failed to send message to RMASS. Bypassing save during {name}...",
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user