From cbff0cc778f8d7a74c683936e22b92f6d5a56497 Mon Sep 17 00:00:00 2001 From: Rory& Date: Sat, 15 Mar 2025 18:40:59 +0100 Subject: Update LibMatrix for extended invite listener API, document app settings --- .gitignore | 3 ++- LibMatrix | 2 +- MatrixInviteLogger/appsettings.Development.json | 29 +++++++++++++++++++++++-- 3 files changed, 30 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index add57be..9609f77 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ bin/ obj/ /packages/ riderModule.iml -/_ReSharper.Caches/ \ No newline at end of file +/_ReSharper.Caches/ +inviteHandler.*.nextBatch diff --git a/LibMatrix b/LibMatrix index 08b552f..36648a0 160000 --- a/LibMatrix +++ b/LibMatrix @@ -1 +1 @@ -Subproject commit 08b552fc3ad6e81d8ebddc238043681da90673b3 +Subproject commit 36648a023719061a999d8d5f4d2efc43f3dd15a5 diff --git a/MatrixInviteLogger/appsettings.Development.json b/MatrixInviteLogger/appsettings.Development.json index ffdfb9c..92d8675 100644 --- a/MatrixInviteLogger/appsettings.Development.json +++ b/MatrixInviteLogger/appsettings.Development.json @@ -1,4 +1,5 @@ { + // Don't touch this unless you know what you're doing: "Logging": { "LogLevel": { "Default": "Information", @@ -6,11 +7,35 @@ } }, "LibMatrixBot": { + // Homeserver to connect to. + // Note: Homeserver resolution is applied here, but a direct base URL can be used. "Homeserver": "rory.gay", - "AccessTokenPath": "/home/Rory/matrix_access_token" + + // Absolute path to the file containing the access token + "AccessTokenPath": "/home/Rory/matrix_access_token", + "InviteHandler": { + "SyncConfiguration": { + // How long to wait until the sync request times out + // "Timeout": 300000, + + // Minimum sync interval, useful if you want to have less traffic than a normal client. + "MinimumSyncTime": "00:00:10.000", + + // What presence value to set + // Defaults to "online" if null or not set + // "Presence": "online", + + // Filter to apply to the sync request. Useful if you want custom data to be sent. + // "Filter": { } + } + } }, "InviteLogger": { + // Room to log invites to. Note that data will be posted without encryption, even if the room is encrypted! "LogRoom": "!GrLSwdAkdrvfMrRYKR:rory.gay", - "SendInviteDataAsFile": true // default: false + + // Send the invite data as a file, separately to linking it in the message event + // Provides easy manual access - defaults to false + "SendInviteDataAsFile": true } } -- cgit 1.5.1