1
0

Fixes an attribute error when using the default display name during registration. (#32)

This commit is contained in:
Patrick Cloke
2020-03-19 09:46:12 -04:00
committed by GitHub
parent 85845e048c
commit e24928de99
3 changed files with 25 additions and 0 deletions

1
changelog.d/32.bugfix Normal file
View File

@@ -0,0 +1 @@
Fixes a bug when using the default display name during registration.

View File

@@ -44,6 +44,7 @@ from synapse.replication.slave.storage.receipts import SlavedReceiptsStore
from synapse.replication.slave.storage.registration import SlavedRegistrationStore
from synapse.replication.slave.storage.room import RoomStore
from synapse.replication.slave.storage.transactions import SlavedTransactionStore
from synapse.replication.slave.storage.user_directory import SlavedUserDirectoryStore
from synapse.replication.tcp.client import ReplicationClientHandler
from synapse.rest.client.v1.login import LoginRestServlet
from synapse.rest.client.v1.push_rule import PushRuleRestServlet
@@ -84,6 +85,7 @@ class ClientReaderSlavedStore(
SlavedTransactionStore,
SlavedProfileStore,
SlavedClientIpStore,
SlavedUserDirectoryStore,
BaseSlavedStore,
):
pass

View File

@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Copyright 2020 The Matrix.org Foundation C.I.C.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from synapse.storage.user_directory import UserDirectoryStore
from ._base import BaseSlavedStore
class SlavedUserDirectoryStore(UserDirectoryStore, BaseSlavedStore):
pass