diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2022-03-10 10:36:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-10 15:36:13 +0000 |
commit | ea27528b5d177dcfc5a4e38b463baeace916dc8e (patch) | |
tree | 4fc7ebe8c997256b8744de2f4f29c72f020b50c3 /synapse/handlers/message.py | |
parent | Updates to the Room DAG concepts development document (#12179) (diff) | |
download | synapse-ea27528b5d177dcfc5a4e38b463baeace916dc8e.tar.xz |
Support stable identifiers for MSC3440: Threading (#12151)
The unstable identifiers are still supported if the experimental configuration flag is enabled. The unstable identifiers will be removed in a future release.
Diffstat (limited to 'synapse/handlers/message.py')
-rw-r--r-- | synapse/handlers/message.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/handlers/message.py b/synapse/handlers/message.py index 0799ec9a84..f9544fe7fb 100644 --- a/synapse/handlers/message.py +++ b/synapse/handlers/message.py @@ -1079,7 +1079,10 @@ class EventCreationHandler: raise SynapseError(400, "Can't send same reaction twice") # Don't attempt to start a thread if the parent event is a relation. - elif relation_type == RelationTypes.THREAD: + elif ( + relation_type == RelationTypes.THREAD + or relation_type == RelationTypes.UNSTABLE_THREAD + ): if await self.store.event_includes_relation(relates_to): raise SynapseError( 400, "Cannot start threads from an event with a relation" |