optimise tree view a tiny bit

don't refresh all the time, wait for the data to be ready. waiting on
the data is not a good idea either, but it is better than to
continously refresh all the data
This commit is contained in:
2019-07-19 21:32:22 +02:00
parent af49931b49
commit a9f23fc278
7 changed files with 53 additions and 9 deletions

View File

@@ -45,6 +45,12 @@ bool dc_session_logout(dc_session_t s);
*/
bool dc_session_login(dc_session_t s, dc_account_t login);
/**
* Returns true if the session is ready, i.e. a login has been performed
* and the READY event has been parsed from the websocket.
*/
bool dc_session_is_ready(dc_session_t s);
bool dc_session_has_token(dc_session_t s);
/**