summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Eastwood <eric.eastwood@beta.gouv.fr>2024-07-18 06:49:53 -0500
committerGitHub <noreply@github.com>2024-07-18 12:49:53 +0100
commita574de006286352e150b397f34fecc0d83e68148 (patch)
treefc7276d6aa69bb26bfc2db6be279ceeea08b14d6
parentOrder `heroes` by `stream_ordering` (as spec'ed) (#17435) (diff)
downloadsynapse-a574de006286352e150b397f34fecc0d83e68148.tar.xz
Add `m.room.create` to default bump event types (#17453)
Add `m.room.create` to default bump event types

This probably helps when no messages have been sent in the room and it
was just created.
-rw-r--r--changelog.d/17453.misc1
-rw-r--r--synapse/handlers/sliding_sync.py1
2 files changed, 2 insertions, 0 deletions
diff --git a/changelog.d/17453.misc b/changelog.d/17453.misc
new file mode 100644
index 0000000000..2978a52477
--- /dev/null
+++ b/changelog.d/17453.misc
@@ -0,0 +1 @@
+Update experimental [MSC3575](https://github.com/matrix-org/matrix-spec-proposals/pull/3575) Sliding Sync `/sync` endpoint to bump room when it is created.
diff --git a/synapse/handlers/sliding_sync.py b/synapse/handlers/sliding_sync.py
index 1b5262d667..a23a6b9dd9 100644
--- a/synapse/handlers/sliding_sync.py
+++ b/synapse/handlers/sliding_sync.py
@@ -53,6 +53,7 @@ logger = logging.getLogger(__name__)
 
 # The event types that clients should consider as new activity.
 DEFAULT_BUMP_EVENT_TYPES = {
+    EventTypes.Create,
     EventTypes.Message,
     EventTypes.Encrypted,
     EventTypes.Sticker,