Compare commits

...
Author SHA1 Message Date
Renovate Bot 91d64e63e4 chore(deps): update node-patch-updates to v2.1.6 2026-12-03 05:03:30 +00:00
timedout d5cf029135 chore: Add news fragment 2026-12-02 13:55:58 +00:00
timedout 34fb1dfb15 feat: Add server-side support for MSC4563 2026-12-02 13:55:58 +00:00
Renovate Bot 032e5ce65b chore(deps): update pre-commit hook crate-ci/typos to v1.53.0 2026-12-02 05:04:10 +00:00
Julian Anderson c316d8f969 ci(docs/preview): Don't try to deploy preview docs for tagged releases
Also, run action validations as a pre-commit hook if workflow files are changed
2026-12-01 09:27:24 -05:00
Jade Ellis 134211d0ec chore: Release announcement 2026-11-30 22:40:42 +00:00
Jade Ellis 924e70c1e1 chore: Format 2026-11-30 22:02:07 +00:00
10 changed files with 204 additions and 104 deletions

No files matched your search

-2
View File
@@ -5,8 +5,6 @@ on:
push: push:
branches: branches:
- main - main
tags:
- "v*"
workflow_dispatch: workflow_dispatch:
concurrency: concurrency:
+9 -1
View File
@@ -24,7 +24,7 @@ repos:
- id: check-added-large-files - id: check-added-large-files
- repo: https://github.com/crate-ci/typos - repo: https://github.com/crate-ci/typos
rev: v1.52.2 rev: v1.53.0
hooks: hooks:
- id: typos - id: typos
- id: typos - id: typos
@@ -62,3 +62,11 @@ repos:
types: [ rust ] types: [ rust ]
stages: stages:
- pre-push - pre-push
- repo: https://code.forgejo.org/forgejo/runner
rev: v13.2.1
hooks:
- id: forgejo-runner-validate
stages:
- pre-commit
files: ".forgejo/*"
+1
View File
@@ -398,6 +398,7 @@ features = [
"unstable-msc4484", "unstable-msc4484",
"unstable-msc4540", "unstable-msc4540",
"unstable-msc4560", "unstable-msc4560",
"unstable-msc4563",
"unstable-extensible-events", "unstable-extensible-events",
] ]
+1
View File
@@ -0,0 +1 @@
Added server-side support for [MSC4563: direct_message push rule](https://github.com/matrix-org/matrix-spec-proposals/pull/4563). Contributed by @nex.
+12
View File
@@ -2808,6 +2808,18 @@
# env: CONTINUWUITY_EXPERIMENTS__MSC4560 # env: CONTINUWUITY_EXPERIMENTS__MSC4560
#msc4560 = false #msc4560 = false
# MSC4563: `direct_message` push rule
#
# Creates a new kind of push rule that creates a notification if a message
# is received in a room that is in the user's direct message list. This
# more accurately identifies direct messages, rather than relying on a "DM
# room" only consisting of two members.
#
# https://github.com/matrix-org/matrix-spec-proposals/pull/4563
#
# env: CONTINUWUITY_EXPERIMENTS__MSC4563
#msc4563 = false
#[global.experiments.msc2815] #[global.experiments.msc2815]
# MSC2815: Proposal to allow room moderators to view redacted event content # MSC2815: Proposal to allow room moderators to view redacted event content
# #
@@ -6,10 +6,10 @@
"message": "Welcome to Continuwuity! Important announcements about the project will appear here." "message": "Welcome to Continuwuity! Important announcements about the project will appear here."
}, },
{ {
"id": 21, "id": 22,
"mention_room": true, "mention_room": true,
"date": "2026-09-29", "date": "2026-11-30",
"message": "[Continuwuity 26.9.1](https://forgejo.ellis.link/continuwuation/continuwuity/releases/tag/v26.9.1) has just been released - this update features a fix for a **critical** security issue, please read the release notes for more information." "message": "[Continuwuity v26.11.0](https://forgejo.ellis.link/continuwuation/continuwuity/releases/tag/v26.11.0) is out, and it's massively jam-packed with so much goodness I don't know where to start. It's time to get upgrading! If you're not already convinced, here are a couple key highlights:\n\n* Appservices now receive typing indicators and read receipts. Suddenly bridges feel more alive.\n* Continuwuity can now **export metrics** via OTLP or Prometheus! There's even a Grafana dashboard included in the repo to save you the hassle of having to build you own. How thoughtful.\n* Continuwuity is more decentralised than ever, because it's now able to function as a **key notary server** for other Matrix servers. Add your friends as trusted servers!\n* **QR code login**! As client support grows, you will have the option of skipping the password and emoji verification dance when adding a new device.\n* Jump to timestamp, less retries on gone servers, no more unauthenticated media at all, better performance and so so much more.\n* Also, security fixes. That makes it pretty important you get this.\n\nGo [read the changelog](https://forgejo.ellis.link/continuwuation/continuwuity/releases/tag/v26.11.0) - and upgrade right now"
} }
] ]
} }
+132 -95
View File
@@ -16,35 +16,38 @@
} }
}, },
"node_modules/@emnapi/core": { "node_modules/@emnapi/core": {
"version": "2.0.0-beta.3", "version": "1.11.3",
"resolved": "https://registry.npmjs.org/@emnapi/core/-/core-2.0.0-beta.3.tgz", "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.11.3.tgz",
"integrity": "sha512-KA+gOBtbifRATmUa/Gpf5C2B2EJ0r4brHUT3XSgACeHREcuiObXH56xd+B3fFsEFbUT04VBEe6MuZiCtMp0tQg==", "integrity": "sha512-zLpS5asjEb7lq8jYLq37N6XKaE41DIexlY1rF/z4/tIl3wo13Sqm28fRyfIsKZD+NZ8mM5RoKkpW/rBcuoSZSg==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"optional": true, "optional": true,
"peer": true,
"dependencies": { "dependencies": {
"@emnapi/wasi-threads": "2.2.0", "@emnapi/wasi-threads": "1.2.3",
"tslib": "^2.4.0" "tslib": "^2.4.0"
} }
}, },
"node_modules/@emnapi/runtime": { "node_modules/@emnapi/runtime": {
"version": "2.0.0-beta.3", "version": "1.11.3",
"resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-2.0.0-beta.3.tgz", "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.11.3.tgz",
"integrity": "sha512-ayb/PyyLzpwRyFVxeC0uoEHu59QlB1iWGcGsOpXQcaB/Dc+uGfBmNmpCHp3HmTT0t8lSsMmg3j7+tdJW/TlHjQ==", "integrity": "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"optional": true, "optional": true,
"peer": true,
"dependencies": { "dependencies": {
"tslib": "^2.4.0" "tslib": "^2.4.0"
} }
}, },
"node_modules/@emnapi/wasi-threads": { "node_modules/@emnapi/wasi-threads": {
"version": "2.2.0", "version": "1.2.3",
"resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-2.2.0.tgz", "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.3.tgz",
"integrity": "sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==", "integrity": "sha512-ELEBe8PsLvvJ6QMr0zLt8ffvOHW/dc1m3CEzNMg7aJUv3bMaoDtw2TXyDAwkYBuroxxuHEwhRTLJSe5sya547g==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"optional": true, "optional": true,
"peer": true,
"dependencies": { "dependencies": {
"tslib": "^2.4.0" "tslib": "^2.4.0"
} }
@@ -128,13 +131,13 @@
} }
}, },
"node_modules/@rsbuild/core": { "node_modules/@rsbuild/core": {
"version": "2.3.6", "version": "2.3.7",
"resolved": "https://registry.npmjs.org/@rsbuild/core/-/core-2.3.6.tgz", "resolved": "https://registry.npmjs.org/@rsbuild/core/-/core-2.3.7.tgz",
"integrity": "sha512-IVuWh/0DO6XT8075eCAzxWIcVGA7c4xKggf/VEePq3yXqEiU302n6OVGD7uCxQwPaB4R9ViX4cAqalcQV/sxKQ==", "integrity": "sha512-IvJZFEeVGcjeSiSHfMlRxJbyL5+xLGcvkNmD34wmIXo85n0va6b8cnqShmprdUKjvXyzE4dPPB9trRunaUY+mA==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@rspack/core": "~2.3.4", "@rspack/core": "~2.3.5",
"@swc/helpers": "^0.5.24" "@swc/helpers": "^0.5.24"
}, },
"bin": { "bin": {
@@ -172,32 +175,32 @@
} }
}, },
"node_modules/@rspack/binding": { "node_modules/@rspack/binding": {
"version": "2.3.4", "version": "2.3.5",
"resolved": "https://registry.npmjs.org/@rspack/binding/-/binding-2.3.4.tgz", "resolved": "https://registry.npmjs.org/@rspack/binding/-/binding-2.3.5.tgz",
"integrity": "sha512-wSOT16LVITL/IKeIiLXgN5Q5jZIDqnQ7Gmk+wzKOSZ6OHYNfEBXAKhSJuYtCBq8ovJuGl8cJjdqatAlHE5XKIA==", "integrity": "sha512-W3x7zw5d/mIH9WhWt4pO9RKYURoqgdUxeLSV5IhDCajnhXdRr7R59u5S2j5ZXzSk3eMGUC0PenfKIIdW7t0ufQ==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"optionalDependencies": { "optionalDependencies": {
"@rspack/binding-darwin-arm64": "2.3.4", "@rspack/binding-darwin-arm64": "2.3.5",
"@rspack/binding-darwin-x64": "2.3.4", "@rspack/binding-darwin-x64": "2.3.5",
"@rspack/binding-linux-arm64-gnu": "2.3.4", "@rspack/binding-linux-arm64-gnu": "2.3.5",
"@rspack/binding-linux-arm64-musl": "2.3.4", "@rspack/binding-linux-arm64-musl": "2.3.5",
"@rspack/binding-linux-ppc64-gnu": "2.3.4", "@rspack/binding-linux-ppc64-gnu": "2.3.5",
"@rspack/binding-linux-riscv64-gnu": "2.3.4", "@rspack/binding-linux-riscv64-gnu": "2.3.5",
"@rspack/binding-linux-riscv64-musl": "2.3.4", "@rspack/binding-linux-riscv64-musl": "2.3.5",
"@rspack/binding-linux-s390x-gnu": "2.3.4", "@rspack/binding-linux-s390x-gnu": "2.3.5",
"@rspack/binding-linux-x64-gnu": "2.3.4", "@rspack/binding-linux-x64-gnu": "2.3.5",
"@rspack/binding-linux-x64-musl": "2.3.4", "@rspack/binding-linux-x64-musl": "2.3.5",
"@rspack/binding-wasm32-wasi": "2.3.4", "@rspack/binding-wasm32-wasi": "2.3.5",
"@rspack/binding-win32-arm64-msvc": "2.3.4", "@rspack/binding-win32-arm64-msvc": "2.3.5",
"@rspack/binding-win32-ia32-msvc": "2.3.4", "@rspack/binding-win32-ia32-msvc": "2.3.5",
"@rspack/binding-win32-x64-msvc": "2.3.4" "@rspack/binding-win32-x64-msvc": "2.3.5"
} }
}, },
"node_modules/@rspack/binding-darwin-arm64": { "node_modules/@rspack/binding-darwin-arm64": {
"version": "2.3.4", "version": "2.3.5",
"resolved": "https://registry.npmjs.org/@rspack/binding-darwin-arm64/-/binding-darwin-arm64-2.3.4.tgz", "resolved": "https://registry.npmjs.org/@rspack/binding-darwin-arm64/-/binding-darwin-arm64-2.3.5.tgz",
"integrity": "sha512-eBD71fbmoJKnxcHD03bukbAIOP5r7nD0Ehs+mUrUQlZ6N53EhuJsTeJ1oYdg5L4GoSeQ+KecCqME81Nm0COLrA==", "integrity": "sha512-A5XnBdSoJvcYV4t2Y+XJiCF0UZ42nOKE2D0ZlegfErGhzlQG1t3hDOzskSB2fPD3z+w5QeREoclqQ0zFOZyBpw==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@@ -209,9 +212,9 @@
] ]
}, },
"node_modules/@rspack/binding-darwin-x64": { "node_modules/@rspack/binding-darwin-x64": {
"version": "2.3.4", "version": "2.3.5",
"resolved": "https://registry.npmjs.org/@rspack/binding-darwin-x64/-/binding-darwin-x64-2.3.4.tgz", "resolved": "https://registry.npmjs.org/@rspack/binding-darwin-x64/-/binding-darwin-x64-2.3.5.tgz",
"integrity": "sha512-CqdfzTLPVFQCniOy/GDVWbg+rqg31qfdzbFf8NYCzdDkCQg+p15hU2HsckD/1sLsaNB8Y55EjGz4ZyGDny0cHg==", "integrity": "sha512-iZrweqTIj2cM4f0ADRj6FXn9a0FOpD1Mx/++zrsbrQzmnY0c8wmfpvZ5xA5Zfcq9O6nuUBS6GnhkmoFTgviHwQ==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@@ -223,9 +226,9 @@
] ]
}, },
"node_modules/@rspack/binding-linux-arm64-gnu": { "node_modules/@rspack/binding-linux-arm64-gnu": {
"version": "2.3.4", "version": "2.3.5",
"resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-2.3.4.tgz", "resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-2.3.5.tgz",
"integrity": "sha512-T/Y1FYiSegcNc+oHuDOLRGIcc+eSdBnfbS70d51EWQj4+0TG/tlfuqFKeAIL3mnKUV5lDLaTz3vsoD0Sws5Fxw==", "integrity": "sha512-aWE9V0ZhmclKsJNuO37cxUMLtXMjhLtFzrWDWC82mksUX6qM2rzOpPuye9i/c9NGqyrIH7EFQre8bskJvNHGuQ==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@@ -240,9 +243,9 @@
] ]
}, },
"node_modules/@rspack/binding-linux-arm64-musl": { "node_modules/@rspack/binding-linux-arm64-musl": {
"version": "2.3.4", "version": "2.3.5",
"resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-musl/-/binding-linux-arm64-musl-2.3.4.tgz", "resolved": "https://registry.npmjs.org/@rspack/binding-linux-arm64-musl/-/binding-linux-arm64-musl-2.3.5.tgz",
"integrity": "sha512-WZHCzZ532UfXFXNU8XyM8jb+I6wddegbs/7IXsyw7xiPwwZX1D/M6iKFVpBYdvKcupUM8bS8Uw2REirR/cERVw==", "integrity": "sha512-I8ENTXdv7Th/OHEYhL7uu3B7DA9r1oTWSifkGHJtuT1XJ0KDsxoA6ORpYz1R2qIs87l+8+5QUnRH7iWyZrnroA==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@@ -257,9 +260,9 @@
] ]
}, },
"node_modules/@rspack/binding-linux-ppc64-gnu": { "node_modules/@rspack/binding-linux-ppc64-gnu": {
"version": "2.3.4", "version": "2.3.5",
"resolved": "https://registry.npmjs.org/@rspack/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-2.3.4.tgz", "resolved": "https://registry.npmjs.org/@rspack/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-2.3.5.tgz",
"integrity": "sha512-WeizqeI6HIh7Ax9w2tlmpTtipJWxXcdgt3QqI3N9LOixymlMD5yMBMZNPqwZ6cHXT9gOQ69SvPcVgMwxsdmceQ==", "integrity": "sha512-ps5do0cKf4aTBWd+LHqvwm8Gdn7J/gvzmx9pWJhAIThvzii45wJREFjGOzJNxdQl+pzKq8JFuzbShNskCN9k2w==",
"cpu": [ "cpu": [
"ppc64" "ppc64"
], ],
@@ -274,9 +277,9 @@
] ]
}, },
"node_modules/@rspack/binding-linux-riscv64-gnu": { "node_modules/@rspack/binding-linux-riscv64-gnu": {
"version": "2.3.4", "version": "2.3.5",
"resolved": "https://registry.npmjs.org/@rspack/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-2.3.4.tgz", "resolved": "https://registry.npmjs.org/@rspack/binding-linux-riscv64-gnu/-/binding-linux-riscv64-gnu-2.3.5.tgz",
"integrity": "sha512-h+001Vbq8LyGwPMNkeRWidPOVKwlAbwNPskY3CjNlSw3euHkVchfhM3uo6+1h0GyTtb3rzsWqsfm1kar7m/tiQ==", "integrity": "sha512-3XXIEMS4SSr1/9wIAGgPT1oj1SzhnlejAG5xeVbGJR5y6iFp/oFKYzUPqyuuzZCkWph2/hJ+Q16sa+BJn1YIkg==",
"cpu": [ "cpu": [
"riscv64" "riscv64"
], ],
@@ -291,9 +294,9 @@
] ]
}, },
"node_modules/@rspack/binding-linux-riscv64-musl": { "node_modules/@rspack/binding-linux-riscv64-musl": {
"version": "2.3.4", "version": "2.3.5",
"resolved": "https://registry.npmjs.org/@rspack/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-2.3.4.tgz", "resolved": "https://registry.npmjs.org/@rspack/binding-linux-riscv64-musl/-/binding-linux-riscv64-musl-2.3.5.tgz",
"integrity": "sha512-S1rlaCnNVG5s4WZ9odLsqN3ySh5TEdNTLXWapEK8x3iQl56aLtdvqXTfbJWHWnYLJuS7M1WqnQGdJNdjy2NDsA==", "integrity": "sha512-z2DbQNcLbUEY9OvUa3gahsHey+dW4acLc9d3QlyJm7TJE//rL9C/XBk4kETvCgtdhqrwBSfWrZfislBPKODjvA==",
"cpu": [ "cpu": [
"riscv64" "riscv64"
], ],
@@ -308,9 +311,9 @@
] ]
}, },
"node_modules/@rspack/binding-linux-s390x-gnu": { "node_modules/@rspack/binding-linux-s390x-gnu": {
"version": "2.3.4", "version": "2.3.5",
"resolved": "https://registry.npmjs.org/@rspack/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-2.3.4.tgz", "resolved": "https://registry.npmjs.org/@rspack/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-2.3.5.tgz",
"integrity": "sha512-0SkgGrgulVMam3xel5dMNKQ+U7BEpCczhF1avGT1DzDVIbMfIOsbb32gApQNSz0E7RfAQ/Pa5eWiA9oyRq7ZMQ==", "integrity": "sha512-n2UudDpzt9G2AOmycVS7uWRMcNMd2k4ubU4b4SX3FfU/uT6mfSNzuwhBhCi0RSZQAGBU0ombJ+sqw8vKXjGGbw==",
"cpu": [ "cpu": [
"s390x" "s390x"
], ],
@@ -325,9 +328,9 @@
] ]
}, },
"node_modules/@rspack/binding-linux-x64-gnu": { "node_modules/@rspack/binding-linux-x64-gnu": {
"version": "2.3.4", "version": "2.3.5",
"resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-gnu/-/binding-linux-x64-gnu-2.3.4.tgz", "resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-gnu/-/binding-linux-x64-gnu-2.3.5.tgz",
"integrity": "sha512-q7E6x3rJJ/9fJyLuRe5+KyEPi23BF/xkAU4xCM5VwLkTf+rVyOkDZfu0qOkxmILjrxllQPV+b/ojBL/ZaIeQPw==", "integrity": "sha512-1sxASGJXg9luaYsFSmAQxSFbUbnMnPA5Mr94yIlLsq4q94sHUIn5YjG1XGcT+cPhUYF9fHkCsKRmQlzrN9fR8A==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@@ -342,9 +345,9 @@
] ]
}, },
"node_modules/@rspack/binding-linux-x64-musl": { "node_modules/@rspack/binding-linux-x64-musl": {
"version": "2.3.4", "version": "2.3.5",
"resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-musl/-/binding-linux-x64-musl-2.3.4.tgz", "resolved": "https://registry.npmjs.org/@rspack/binding-linux-x64-musl/-/binding-linux-x64-musl-2.3.5.tgz",
"integrity": "sha512-rey4Tyasui/WeMn6KfhH5xyZGOMt+Ny+GDK7nGh9TSz/cb3/bisxqGzpbu6GJK8leDmTUDD5ZdpODexytA5rzQ==", "integrity": "sha512-/S4pe1wAo8CBTs0X8DNKu1ZOJ2vQcnThLBKS2CxOPiuQXI7UfAsJCEABBoa8yCrZANWh63fJ90UwLb/s245Gsw==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@@ -359,9 +362,9 @@
] ]
}, },
"node_modules/@rspack/binding-wasm32-wasi": { "node_modules/@rspack/binding-wasm32-wasi": {
"version": "2.3.4", "version": "2.3.5",
"resolved": "https://registry.npmjs.org/@rspack/binding-wasm32-wasi/-/binding-wasm32-wasi-2.3.4.tgz", "resolved": "https://registry.npmjs.org/@rspack/binding-wasm32-wasi/-/binding-wasm32-wasi-2.3.5.tgz",
"integrity": "sha512-sDt2MSXZrIaMBa6UaEqmXEqebwpTOPAXLdo9CYJ2Fa9FJWP4TCYbn30mbvV38ZC2n5YX411DRbjck+s97CceIg==", "integrity": "sha512-GQnswrv6AyBdDCcTy8dTVhD0JqnvmgewzPz6qnOYWGKxpCY99Bv6FL4jvxI1yh64Uk3ykEfbwhrPnaA8Px4KJA==",
"cpu": [ "cpu": [
"wasm32" "wasm32"
], ],
@@ -369,15 +372,49 @@
"license": "MIT", "license": "MIT",
"optional": true, "optional": true,
"dependencies": { "dependencies": {
"@emnapi/core": "2.0.0-beta.3", "@emnapi/core": "2.0.0-beta.4",
"@emnapi/runtime": "2.0.0-beta.3", "@emnapi/runtime": "2.0.0-beta.4",
"@napi-rs/wasm-runtime": "1.2.7" "@napi-rs/wasm-runtime": "1.2.7"
} }
}, },
"node_modules/@rspack/binding-wasm32-wasi/node_modules/@emnapi/core": {
"version": "2.0.0-beta.4",
"resolved": "https://registry.npmjs.org/@emnapi/core/-/core-2.0.0-beta.4.tgz",
"integrity": "sha512-AhU/vMMXtGgLCrWsL3PjZGSpCWXlGETabnyyB2pBUd6h7AMy2toffJO2T7yXOYXtw8FyD6dYK/5b3u5eRK3yhw==",
"dev": true,
"license": "MIT",
"optional": true,
"dependencies": {
"@emnapi/wasi-threads": "2.2.0",
"tslib": "^2.4.0"
}
},
"node_modules/@rspack/binding-wasm32-wasi/node_modules/@emnapi/runtime": {
"version": "2.0.0-beta.4",
"resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-2.0.0-beta.4.tgz",
"integrity": "sha512-UKxc3beuftD67T1mPCVf0mnwRKOBsq9XrhLCDGGQKsbG9jx6osvGyjIbJm9DsucyUtFSMTV2ZxsjiuTMjEqWkA==",
"dev": true,
"license": "MIT",
"optional": true,
"dependencies": {
"tslib": "^2.4.0"
}
},
"node_modules/@rspack/binding-wasm32-wasi/node_modules/@emnapi/wasi-threads": {
"version": "2.2.0",
"resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-2.2.0.tgz",
"integrity": "sha512-JP7OYH38Q7+pyTAe14raZHLQIK7BDKbdwji+Xi3pcd/6QkJYQH3SX4wu6EplGrGJWRepoNzedfm0G3B9Z4e9Rw==",
"dev": true,
"license": "MIT",
"optional": true,
"dependencies": {
"tslib": "^2.4.0"
}
},
"node_modules/@rspack/binding-win32-arm64-msvc": { "node_modules/@rspack/binding-win32-arm64-msvc": {
"version": "2.3.4", "version": "2.3.5",
"resolved": "https://registry.npmjs.org/@rspack/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-2.3.4.tgz", "resolved": "https://registry.npmjs.org/@rspack/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-2.3.5.tgz",
"integrity": "sha512-24YC1YSodLAJ8VsMQJmJSHCNvHTqK9JP5hj50T50WE8lCHNsNl/rIYXO9V0VlCYT/HshE6EHHzAeKdahiEOtcw==", "integrity": "sha512-XVKu3Zs5KGr+P5Seh6NtSNU0UQ1GSgSDFANQRZlT1uFZ1NpBCX+9NB8FVZB0hBBoBKI1kU4b0Cr6Df1Xx0K4nQ==",
"cpu": [ "cpu": [
"arm64" "arm64"
], ],
@@ -389,9 +426,9 @@
] ]
}, },
"node_modules/@rspack/binding-win32-ia32-msvc": { "node_modules/@rspack/binding-win32-ia32-msvc": {
"version": "2.3.4", "version": "2.3.5",
"resolved": "https://registry.npmjs.org/@rspack/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-2.3.4.tgz", "resolved": "https://registry.npmjs.org/@rspack/binding-win32-ia32-msvc/-/binding-win32-ia32-msvc-2.3.5.tgz",
"integrity": "sha512-xmUNu6kgV9lLEkRP1Zb+t6i1Z1ZMEWXmLlMalPx8tHqndz2RflNMBBx6kjB2nAPQBIZgWufwm7dVGS0HKomCmw==", "integrity": "sha512-ejCqSuctPcOev2dyi0ayZyfIUY3fJdYHYvrTfSVrrGC19TspuRATXu+RLyu3xvB6TrQF3+JEF4KeG4/ZeWuXOg==",
"cpu": [ "cpu": [
"ia32" "ia32"
], ],
@@ -403,9 +440,9 @@
] ]
}, },
"node_modules/@rspack/binding-win32-x64-msvc": { "node_modules/@rspack/binding-win32-x64-msvc": {
"version": "2.3.4", "version": "2.3.5",
"resolved": "https://registry.npmjs.org/@rspack/binding-win32-x64-msvc/-/binding-win32-x64-msvc-2.3.4.tgz", "resolved": "https://registry.npmjs.org/@rspack/binding-win32-x64-msvc/-/binding-win32-x64-msvc-2.3.5.tgz",
"integrity": "sha512-WY+AkJqpbLtLEZiG1fE7CVJZ54y0qHeCiVmLxGBsh4OOGIDCs6v2Ub5COcPrYVzGJFGyeHUS29dV7JAs93qIHw==", "integrity": "sha512-IPvkjM3xAwL1z2N4Jp/GBcZUme703uDy5vrP1IMtXJEl/EOLLfwl7cRb4sSzdeOYGDDHs5dPYDcpgP5eRSRauA==",
"cpu": [ "cpu": [
"x64" "x64"
], ],
@@ -417,13 +454,13 @@
] ]
}, },
"node_modules/@rspack/core": { "node_modules/@rspack/core": {
"version": "2.3.4", "version": "2.3.5",
"resolved": "https://registry.npmjs.org/@rspack/core/-/core-2.3.4.tgz", "resolved": "https://registry.npmjs.org/@rspack/core/-/core-2.3.5.tgz",
"integrity": "sha512-T8HGkIjPVDlGlIN8st/ICe8Gfixq8te75g/8crSdNSf8F+6884sBcKNky0CRdfPxao1C5SXV+Vjv1XJTjyu83w==", "integrity": "sha512-4TG6zGTemEU/FU7bymDgeFOO7CRdd7ucn0CmXo+3cG6EhYmY5+hpAFYBRgxDbDuL4Bwo/s5GsgUvZuI7rLqVbQ==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@rspack/binding": "2.3.4" "@rspack/binding": "2.3.5"
}, },
"engines": { "engines": {
"node": "^20.19.0 || >=22.12.0" "node": "^20.19.0 || >=22.12.0"
@@ -458,22 +495,22 @@
} }
}, },
"node_modules/@rspress/core": { "node_modules/@rspress/core": {
"version": "2.1.5", "version": "2.1.6",
"resolved": "https://registry.npmjs.org/@rspress/core/-/core-2.1.5.tgz", "resolved": "https://registry.npmjs.org/@rspress/core/-/core-2.1.6.tgz",
"integrity": "sha512-kzTqrfJ4UiW+RLLHLunoW/rET5Vjb6Qz4YjhEhiWEp4HYM+KxLVhfyYB5aL8af9+mdnwiTaqlu1s+BZGrMD2zw==", "integrity": "sha512-a+CBJcslana9Zmr6j2o3RP6O19y+rcyfa8jeDToC1b29e/RGiD+xpAQJF2eBvnjNUHouXARTaFa7pE1myyV0Rg==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@mdx-js/mdx": "^3.1.1", "@mdx-js/mdx": "^3.1.1",
"@mdx-js/react": "^3.1.1", "@mdx-js/react": "^3.1.1",
"@rsbuild/core": "^2.3.3", "@rsbuild/core": "^2.3.7",
"@rsbuild/plugin-react": "~2.1.1", "@rsbuild/plugin-react": "~2.1.1",
"@rspress/shared": "2.1.5", "@rspress/shared": "2.1.6",
"@shikijs/rehype": "^4.2.0", "@shikijs/rehype": "^4.2.0",
"@shikijs/transformers": "^4.2.0", "@shikijs/transformers": "^4.2.0",
"@types/mdast": "^4.0.4", "@types/mdast": "^4.0.4",
"@types/react": "^19.3.0", "@types/react": "^19.3.3",
"@unhead/react": "^2.1.18", "@unhead/react": "^2.1.19",
"body-scroll-lock": "4.0.0-beta.0", "body-scroll-lock": "4.0.0-beta.0",
"clsx": "2.1.1", "clsx": "2.1.1",
"copy-to-clipboard": "^3.3.3", "copy-to-clipboard": "^3.3.3",
@@ -490,7 +527,7 @@
"react-dom": "^19.3.1", "react-dom": "^19.3.1",
"react-lazy-with-preload": "^2.2.1", "react-lazy-with-preload": "^2.2.1",
"react-render-to-markdown": "19.2.0", "react-render-to-markdown": "19.2.0",
"react-router-dom": "^7.18.6", "react-router-dom": "^7.18.7",
"rehype-external-links": "^3.0.0", "rehype-external-links": "^3.0.0",
"rehype-raw": "^7.0.0", "rehype-raw": "^7.0.0",
"remark-cjk-friendly": "^2.3.4", "remark-cjk-friendly": "^2.3.4",
@@ -514,9 +551,9 @@
} }
}, },
"node_modules/@rspress/plugin-client-redirects": { "node_modules/@rspress/plugin-client-redirects": {
"version": "2.1.5", "version": "2.1.6",
"resolved": "https://registry.npmjs.org/@rspress/plugin-client-redirects/-/plugin-client-redirects-2.1.5.tgz", "resolved": "https://registry.npmjs.org/@rspress/plugin-client-redirects/-/plugin-client-redirects-2.1.6.tgz",
"integrity": "sha512-vqAi7ynOgVsuwJi7cXwWEF5UgoNhXqGOyBfQubeZHZKWRtdNHRU42P9rG9DZLTss2dZUiDKlVrM2/vNY40t5hw==", "integrity": "sha512-lnSIA3oD44PZa0o0r4gvTBBGWeImD3T7D28FRJlzCdrWQX3kOHpyhxd9fCcK9mE32DYItlu/ipsmpSozmDN9ZA==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"engines": { "engines": {
@@ -527,15 +564,15 @@
} }
}, },
"node_modules/@rspress/shared": { "node_modules/@rspress/shared": {
"version": "2.1.5", "version": "2.1.6",
"resolved": "https://registry.npmjs.org/@rspress/shared/-/shared-2.1.5.tgz", "resolved": "https://registry.npmjs.org/@rspress/shared/-/shared-2.1.6.tgz",
"integrity": "sha512-XXxegxRZ7VPADS2veN9FTNmmLlA65ieydKH0tOhOZbMJC4OJpKbr/d/JS2jxxAO4u+ZmZxbDyEEir83NQHLKIw==", "integrity": "sha512-ecHmNItlMsMU5FEf0CeBKZa4XNCE5fpwCED+1/lmcwIhozyBvd4j4Ook/8IyTT3UqgruJDZ2DwQqfyvCW7zmLg==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@rsbuild/core": "^2.3.3", "@rsbuild/core": "^2.3.7",
"@shikijs/rehype": "^4.2.0", "@shikijs/rehype": "^4.2.0",
"@types/react": "^19.3.0", "@types/react": "^19.3.3",
"mdast-util-mdx-jsx": "^3.2.2", "mdast-util-mdx-jsx": "^3.2.2",
"unified": "^11.0.5" "unified": "^11.0.5"
} }
+2 -1
View File
@@ -201,7 +201,8 @@ async fn create_invite(
.expect("must be able to create PDU object"); .expect("must be able to create PDU object");
invite_state.push(RawStrippedState::Pdu(serde_json::value::to_raw_value(&signed_event)?)); invite_state.push(RawStrippedState::Pdu(serde_json::value::to_raw_value(&signed_event)?));
// We always mark the room as invited, because we don't act on invites through /send // We always mark the room as invited, because we don't act on invites
// through /send
services services
.rooms .rooms
.state_cache .state_cache
+13
View File
@@ -146,6 +146,19 @@ pub struct Experiments {
/// default: false /// default: false
#[serde(default)] #[serde(default)]
pub msc4560: SimpleExperiment, pub msc4560: SimpleExperiment,
/// MSC4563: `direct_message` push rule
///
/// Creates a new kind of push rule that creates a notification if a message
/// is received in a room that is in the user's direct message list. This
/// more accurately identifies direct messages, rather than relying on a "DM
/// room" only consisting of two members.
///
/// https://github.com/matrix-org/matrix-spec-proposals/pull/4563
///
/// default: false
#[serde(default)]
pub msc4563: SimpleExperiment,
} }
/// Represents a "simple" experiment, which is either disabled or enabled. /// Represents a "simple" experiment, which is either disabled or enabled.
+31 -2
View File
@@ -2,6 +2,7 @@ mod webpush;
use std::{fmt::Debug, mem, net::IpAddr, sync::Arc}; use std::{fmt::Debug, mem, net::IpAddr, sync::Arc};
use assign::assign;
use bytes::BytesMut; use bytes::BytesMut;
use conduwuit::{config::experiments::ToggledExperiment, utils::response::LimitReadExt}; use conduwuit::{config::experiments::ToggledExperiment, utils::response::LimitReadExt};
use conduwuit_core::{ use conduwuit_core::{
@@ -23,7 +24,10 @@ use ruma::{
v1::{Device, Notification, NotificationCounts, NotificationPriority}, v1::{Device, Notification, NotificationCounts, NotificationPriority},
}, },
}, },
events::{AnySyncTimelineEvent, TimelineEventType, room::power_levels::RoomPowerLevels}, events::{
AnySyncTimelineEvent, GlobalAccountDataEvent, GlobalAccountDataEventType,
TimelineEventType, direct::DirectEventContent, room::power_levels::RoomPowerLevels,
},
push::{ push::{
Action, HighlightTweakValue, PushConditionPowerLevelsCtx, PushConditionRoomCtx, Action, HighlightTweakValue, PushConditionPowerLevelsCtx, PushConditionRoomCtx,
PushFormat, Ruleset, Tweak, PushFormat, Ruleset, Tweak,
@@ -36,7 +40,7 @@ use url::Host;
pub use self::webpush::ActivationOutcome; pub use self::webpush::ActivationOutcome;
use self::webpush::Vapid; use self::webpush::Vapid;
use crate::{Dep, client, config, globals, rooms, sending, users}; use crate::{Dep, account_data, client, config, globals, rooms, sending, users};
const PUSH_GATEWAY_SCHEMES: &[&str] = &["http", "https"]; const PUSH_GATEWAY_SCHEMES: &[&str] = &["http", "https"];
const WEBPUSH_SCHEMES: &[&str] = &["https"]; const WEBPUSH_SCHEMES: &[&str] = &["https"];
@@ -57,6 +61,7 @@ pub struct Service {
struct Services { struct Services {
server: Arc<Server>, server: Arc<Server>,
globals: Dep<globals::Service>, globals: Dep<globals::Service>,
account_data: Dep<account_data::Service>,
config: Dep<config::Service>, config: Dep<config::Service>,
client: Dep<client::Service>, client: Dep<client::Service>,
state_accessor: Dep<rooms::state_accessor::Service>, state_accessor: Dep<rooms::state_accessor::Service>,
@@ -86,6 +91,7 @@ impl crate::Service for Service {
services: Services { services: Services {
server: args.server.clone(), server: args.server.clone(),
globals: args.depend::<globals::Service>("globals"), globals: args.depend::<globals::Service>("globals"),
account_data: args.depend::<account_data::Service>("account_data"),
client: args.depend::<client::Service>("client"), client: args.depend::<client::Service>("client"),
config: args.depend::<config::Service>("config"), config: args.depend::<config::Service>("config"),
state_accessor: args state_accessor: args
@@ -488,11 +494,34 @@ impl Service {
.await .await
.unwrap_or_else(|_| user.localpart().to_owned()); .unwrap_or_else(|_| user.localpart().to_owned());
let is_direct = self.services.config.experiments.msc4563.is_enabled()
&& self
.services
.account_data
.get_global::<GlobalAccountDataEvent<DirectEventContent>>(
user,
GlobalAccountDataEventType::Direct,
)
.await
.ok()
.and_then(|direct| {
direct
.content
.values()
.flatten()
.any(|dm_room_id| dm_room_id == room_id)
.then_some(())
})
.is_some();
assign!(
PushConditionRoomCtx::new( PushConditionRoomCtx::new(
room_id.to_owned(), room_id.to_owned(),
room_joined_count, room_joined_count,
user.to_owned(), user.to_owned(),
user_display_name, user_display_name,
),
{ is_direct }
) )
.with_power_levels(power_levels) .with_power_levels(power_levels)
} }