Richard van der Hoff
26c7c9e994
Make SessionLoader a function
...
There's no point in it being a React component.
2016-08-10 11:36:26 +01:00
Richard van der Hoff
24841cc5c4
Start to factor out session-loading magic
...
Take some of the magic out of MatrixChat.componentDidMount() into a new
component.
Also delete the MatrixChat test. It wasn't really doing much, is broken by the
change, and I am replacing it with (better) app-level tests in the vector
project.
2016-08-10 00:05:44 +01:00
David Baker
e144da75e3
Comment onLoggedOut & consistent comment style
2016-08-04 10:49:34 +01:00
David Baker
afa46a855b
Merge remote-tracking branch 'origin/develop' into dbkr/deactivate_account
2016-08-03 17:52:35 +01:00
David Baker
0919e41469
Fix MatrixClientPeg.start()
...
Move import & use `this`
2016-08-03 16:45:23 +01:00
David Baker
9bf45fb556
Add start wrapper in MatrixClientPeg
...
to handle the opts dictionary
2016-08-03 16:39:47 +01:00
David Baker
b95a1c4a4b
Just doc with the MatrixClientCreds object
2016-08-03 16:31:42 +01:00
David Baker
a5384d32e2
Copy opts to set pendingEventOrdering
2016-08-03 16:28:37 +01:00
David Baker
ffa97a4095
Log out when account is deactivated
2016-08-03 11:47:29 +01:00
David Baker
d9a7d50a03
Add an interface for MatrixClientCreds
...
and make MatrixClientPeg functions use it consistently
2016-08-03 10:46:42 +01:00
David Baker
1f17b78371
log if we can't log out
2016-08-03 10:01:23 +01:00
David Baker
40834d188e
Don't let pendingEventOrdering be changed
2016-08-02 18:58:18 +01:00
David Baker
77a5384bf8
Comment startMatrixClient
2016-08-02 18:56:12 +01:00
David Baker
c2c548ef5a
Comment logout
2016-08-02 18:55:13 +01:00
David Baker
b9a5f7902b
Doc setLoggedIn & remove redundant opts
2016-08-02 18:52:56 +01:00
David Baker
58bbb35096
s/login/setLoggedIn/
2016-08-02 18:48:27 +01:00
David Baker
db9750a7e3
Call the logout API when we log out
...
Also try to refactor some of the login/logout code out of MatrixChat and into a separate Lifecycle.js. This still isn't great, but it at least gets some code out of MatrixClient.
2016-08-02 14:04:20 +01:00