Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Jul 5, 2019
1 parent d6c89b5 commit f351013
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 1 addition & 3 deletions synapse/rest/client/v1/room.py
Original file line number Diff line number Diff line change
Expand Up @@ -743,9 +743,7 @@ def on_POST(self, request, room_id, event_id, txn_id=None):

# Redact any m.replace relations of this event
relation_chunk = yield self.store.get_relations_for_event(
event_id,
relation_type="m.replace",
event_type="m.room.message",
event_id, relation_type="m.replace", event_type="m.room.message"
)
relation_ids = relation_chunk.to_dict()

Expand Down
6 changes: 4 additions & 2 deletions tests/rest/client/v2_alpha/test_relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,8 @@ def test_aggregation_redaction_redacts_edits(self):
# Redact the original
request, channel = self.make_request(
"PUT",
"/rooms/%s/redact/%s/%s" % (self.room, self.parent_id, "some_transaction_id"),
"/rooms/%s/redact/%s/%s"
% (self.room, self.parent_id, "some_transaction_id"),
access_token=self.user_token,
)
self.render(request)
Expand All @@ -545,7 +546,8 @@ def test_aggregation_redaction_redacts_edits(self):
# Try to check for remaining m.replace relations
request, channel = self.make_request(
"GET",
"/_matrix/client/unstable/rooms/%s/relations/%s/m.replace/m.room.message" % (self.room, self.parent_id),
"/_matrix/client/unstable/rooms/%s/relations/%s/m.replace/m.room.message"
% (self.room, self.parent_id),
access_token=self.user_token,
)
self.render(request)
Expand Down

0 comments on commit f351013

Please sign in to comment.