Completed deduplication for outgoing messages

This commit is contained in:
Lyncoln
2026-10-23 22:18:33 -04:00
parent d2a199eeb7
commit 17c749a249
+22 -3
View File
@@ -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"},
],
}