mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2025-01-06 06:07:50 -05:00
Fix style checking due to updated black.
This commit is contained in:
parent
d9f1dccba9
commit
c4a55ac4a4
@ -310,8 +310,7 @@ class ProfileHandler(BaseHandler):
|
|||||||
await self._update_join_states(requester, target_user)
|
await self._update_join_states(requester, target_user)
|
||||||
|
|
||||||
async def on_profile_query(self, args: JsonDict) -> JsonDict:
|
async def on_profile_query(self, args: JsonDict) -> JsonDict:
|
||||||
"""Handles federation profile query requests.
|
"""Handles federation profile query requests."""
|
||||||
"""
|
|
||||||
|
|
||||||
if not self.hs.config.allow_profile_lookup_over_federation:
|
if not self.hs.config.allow_profile_lookup_over_federation:
|
||||||
raise SynapseError(
|
raise SynapseError(
|
||||||
|
@ -619,7 +619,10 @@ class UserDirectoryTestCase(unittest.HomeserverTestCase):
|
|||||||
[self.assertIn(user, remote_users) for user in received_user_id_ordering[3:]]
|
[self.assertIn(user, remote_users) for user in received_user_id_ordering[3:]]
|
||||||
|
|
||||||
def _add_user_to_room(
|
def _add_user_to_room(
|
||||||
self, room_id: str, room_version: RoomVersion, user_id: str,
|
self,
|
||||||
|
room_id: str,
|
||||||
|
room_version: RoomVersion,
|
||||||
|
user_id: str,
|
||||||
):
|
):
|
||||||
# Add a user to the room.
|
# Add a user to the room.
|
||||||
builder = self.event_builder_factory.for_room_version(
|
builder = self.event_builder_factory.for_room_version(
|
||||||
|
Loading…
Reference in New Issue
Block a user