Introduced is comparison to applyConditions to fo boolean value filtering
This commit is contained in:
@@ -17,8 +17,9 @@ resolve = {
|
||||
"sender": ["messageitem", "senderId"],
|
||||
"message_id": ["messageitem", "id"],
|
||||
"message_body": ["messageitem", "text"],
|
||||
"room_id": ["dmroom_id"],
|
||||
"room_id": ["room_id"],
|
||||
"timestamp": ["messageitem", "createdAt"],
|
||||
#"attachments": ["messageitem", "attachments"]
|
||||
},
|
||||
"construct": {
|
||||
"matrixuser": [
|
||||
@@ -114,7 +115,6 @@ readrow = {
|
||||
"rowsearchvalue": [
|
||||
{"resolved": "message_id"},
|
||||
],
|
||||
"columnnumber": 0,
|
||||
"export": {
|
||||
0: "db_message_id",
|
||||
}
|
||||
@@ -127,5 +127,18 @@ filters = [
|
||||
"filtervalue": {"outputs": "db_message_id"},
|
||||
"print": "Message already forwarded. Continuing...",
|
||||
},
|
||||
]
|
||||
|
||||
## To be uncommented once getrmassattachments is introduced
|
||||
# {
|
||||
# "filterkey": "attachments",
|
||||
# "operator": "is not",
|
||||
# "filtervalue": None,
|
||||
# "print": "Getting message attachments...",
|
||||
# "execute": "getrmassattachments"
|
||||
# },
|
||||
{
|
||||
"filterkey": "room_id",
|
||||
"operator": "is",
|
||||
"filtervalue": None,
|
||||
"print": f"DM room is unavailable. Skipping {name}...",
|
||||
},
|
||||
]
|
||||
Reference in New Issue
Block a user