Move the sync and login functions into the server class.

This commit is contained in:
poljar (Damir Jelić) 2018-02-12 14:53:19 +01:00
parent da13abc5fa
commit 390d08b229
4 changed files with 25 additions and 31 deletions

View file

@ -33,7 +33,6 @@ from matrix.utf import utf8_decode
from matrix.http import HttpResponse
from matrix.api import (
MessageType,
matrix_login,
MatrixSendMessage
)
from matrix.messages import handle_http_response
@ -332,7 +331,7 @@ def finalize_connection(server):
server.connected = True
server.connecting = False
matrix_login(server)
server.login()
@utf8_decode