Skip to content
Snippets Groups Projects
Commit 44b8ba48 authored by Erik Johnston's avatar Erik Johnston
Browse files

Fix words

parent 0620dd49
No related branches found
No related tags found
No related merge requests found
...@@ -601,9 +601,9 @@ class EventCreationHandler(object): ...@@ -601,9 +601,9 @@ class EventCreationHandler(object):
self.validator.validate_new(event) self.validator.validate_new(event)
# We now check that if this event is an annotation that the can't # If this event is an annotation then we check that that the sender
# annotate the same way twice (e.g. stops users from liking an event # can't annotate the same way twice (e.g. stops users from liking an
# multiple times). # event multiple times).
relation = event.content.get("m.relates_to", {}) relation = event.content.get("m.relates_to", {})
if relation.get("rel_type") == RelationTypes.ANNOTATION: if relation.get("rel_type") == RelationTypes.ANNOTATION:
relates_to = relation["event_id"] relates_to = relation["event_id"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment