Completed deduplication for outgoing messages
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name = "Get messages"
|
name = "Save RMASS Message ID"
|
||||||
|
|
||||||
kind = "action"
|
kind = "action"
|
||||||
|
|
||||||
@@ -13,6 +13,7 @@ method = "GET"
|
|||||||
#Used to resolve path for recursive handling. Path location must match the location of the recursiveset data from pullmessage operation
|
#Used to resolve path for recursive handling. Path location must match the location of the recursiveset data from pullmessage operation
|
||||||
resolve = {
|
resolve = {
|
||||||
"get": {
|
"get": {
|
||||||
|
"event_id": ["outmessageitem", "event_id"],
|
||||||
"path": ["lastmessage", 0, "content", "com.loxthelion.rmass_message_id"],
|
"path": ["lastmessage", 0, "content", "com.loxthelion.rmass_message_id"],
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@@ -34,7 +35,13 @@ outputs = {
|
|||||||
"rmasslastmessages": "messages",
|
"rmasslastmessages": "messages",
|
||||||
}
|
}
|
||||||
|
|
||||||
#outputs["rmasslastmessage"][0]["id"] is where we get our messageid
|
extract = {
|
||||||
|
"get": {
|
||||||
|
"rmass_message_id": ["rmasslastmessages", 0, "id"],
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
|
#outputs["rmasslastmessages"][0]["id"] is where we get our messageid
|
||||||
select = {
|
select = {
|
||||||
"source": "rmasslastmessages",
|
"source": "rmasslastmessages",
|
||||||
"include": {
|
"include": {
|
||||||
@@ -42,8 +49,20 @@ select = {
|
|||||||
"value": 238302,
|
"value": 238302,
|
||||||
},
|
},
|
||||||
"exclude": {
|
"exclude": {
|
||||||
"key": {"currentFolder"},
|
"key": "currentFolder",
|
||||||
"value": 1,
|
"value": 1,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
saverow = {
|
||||||
|
"table": "message_mapping",
|
||||||
|
"columns": [
|
||||||
|
{"rmass_message_id": "INTEGER PRIMARY KEY"},
|
||||||
|
{"matrix_event_id": "TEXT NOT NULL UNIQUE"},
|
||||||
|
],
|
||||||
|
|
||||||
|
"rowitems": [
|
||||||
|
{"resolved": "rmass_message_id"},
|
||||||
|
{"resolved": "event_id"},
|
||||||
|
],
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user