diff options
| author | Linus Jahn <lnj@kaidan.im> | 2019-11-28 13:41:08 +0100 |
|---|---|---|
| committer | LNJ <lnj@kaidan.im> | 2019-11-28 14:50:57 +0100 |
| commit | 23062f74c4fbc74017379dad2dfb0f4a734e6e53 (patch) | |
| tree | e98ed6df40eb9acf21479fa42a76a1752634d1d0 /src/client/QXmppClient.cpp | |
| parent | e0ccd5c869dceee8a5d5ba026c42eaed5f938c3f (diff) | |
| download | qxmpp-23062f74c4fbc74017379dad2dfb0f4a734e6e53.tar.gz | |
QXmppClient: Set correct CSI state on connect
Diffstat (limited to 'src/client/QXmppClient.cpp')
| -rw-r--r-- | src/client/QXmppClient.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/client/QXmppClient.cpp b/src/client/QXmppClient.cpp index 52c047ac..d61bdd4e 100644 --- a/src/client/QXmppClient.cpp +++ b/src/client/QXmppClient.cpp @@ -325,14 +325,18 @@ bool QXmppClient::isConnected() const } /// Returns true if the current client state is "active", false if it is -/// "inactive". See XEP-0352 for details. +/// "inactive". See XEP-0352: Client State Indication for details. +/// +/// On connect this is always reset to true. bool QXmppClient::isActive() const { return d->isActive; } -/// Sets the client state as described in XEP-0352 +/// Sets the client state as described in XEP-0352: Client State Indication. +/// +/// On connect this is always reset to true. void QXmppClient::setActive(bool active) { @@ -527,6 +531,7 @@ void QXmppClient::_q_streamConnected() { d->receivedConflict = false; d->reconnectionTries = 0; + d->isActive = true; // notify managers emit connected(); |
