diff --git a/synapse/storage/profile.py b/synapse/storage/profile.py index c3c3f9ffd838e2f9271f0705e49b6546daeb2298..26a40905aea6e87858e59f4e24b5b8e2225e3132 100644 --- a/synapse/storage/profile.py +++ b/synapse/storage/profile.py @@ -17,6 +17,12 @@ from ._base import SQLBaseStore class ProfileStore(SQLBaseStore): + def create_profile(self, user_localpart): + return self._simple_insert( + table="profiles", + values={"user_id": user_localpart}, + desc="create_profile", + ) def get_profile_displayname(self, user_localpart): return self._simple_select_one_onecol(