Browse Source

Fix TravisCI tests for PR #2301

Caleb James DeLisle 7 years ago
parent
commit
75eba3b07d
3 changed files with 2 additions and 5 deletions
  1. 0 3
      push.py
  2. 1 1
      synapse/config/homeserver.py
  3. 1 1
      synapse/push/httppusher.py

+ 0 - 3
synapse/config/pushconfig.py → push.py

@@ -13,9 +13,6 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-# This file can't be called email.py because if it is, we cannot:
-import email.utils
-
 from ._base import Config
 
 

+ 1 - 1
synapse/config/homeserver.py

@@ -33,7 +33,7 @@ from .jwt import JWTConfig
 from .password_auth_providers import PasswordAuthProviderConfig
 from .emailconfig import EmailConfig
 from .workers import WorkerConfig
-from .pushconfig import PushConfig
+from .push import PushConfig
 
 
 class HomeServerConfig(TlsConfig, ServerConfig, DatabaseConfig, LoggingConfig,

+ 1 - 1
synapse/push/httppusher.py

@@ -275,7 +275,7 @@ class HttpPusher(object):
         if event.type == 'm.room.member':
             d['notification']['membership'] = event.content['membership']
             d['notification']['user_is_target'] = event.state_key == self.user_id
-        if not hs.config.push_redact_content and 'content' in event:
+        if not self.hs.config.push_redact_content and 'content' in event:
             d['notification']['content'] = event.content
 
         # We no longer send aliases separately, instead, we send the human