Fix for synapse >= v0.24

This commit is contained in:
Maxime Dor 2017-10-24 11:05:38 +02:00
parent 8efcda5967
commit 46e68c4cbe

View File

@ -79,7 +79,7 @@ class RestAuthProvider(object):
logger.info("Handling profile data")
profile = auth["profile"]
store = yield self.account_handler.hs.get_handlers().profile_handler.store
store = yield self.account_handler.hs.get_profile_handler().store
if "display_name" in profile and ((registration and self.config.setNameOnRegister) or (self.config.setNameOnLogin)):
display_name = profile["display_name"]
logger.info("Setting display name to '%s' based on profile data", display_name)