Changeset View
Changeset View
Standalone View
Standalone View
src/core/rocketchataccount.cpp
Show First 20 Lines • Show All 1928 Lines • ▼ Show 20 Line(s) | |||||
1929 | 1929 | | |||
1930 | void RocketChatAccount::slotUsersPresenceDone(const QJsonObject &obj) | 1930 | void RocketChatAccount::slotUsersPresenceDone(const QJsonObject &obj) | ||
1931 | { | 1931 | { | ||
1932 | qDebug() << " void RocketChatAccount::slotUsersPresenceDone(const QJsonObject &obj)" << obj; | 1932 | qDebug() << " void RocketChatAccount::slotUsersPresenceDone(const QJsonObject &obj)" << obj; | ||
1933 | } | 1933 | } | ||
1934 | 1934 | | |||
1935 | void RocketChatAccount::slotDisconnectedByServer() | 1935 | void RocketChatAccount::slotDisconnectedByServer() | ||
1936 | { | 1936 | { | ||
1937 | //Laurent: disable it for the moment otherwise when we logout we are unable to add password in login page. Need to improve it first :) | | |||
1938 | | ||||
1939 | return; | | |||
1940 | // This happens when we didn't react to pings for a while | 1937 | // This happens when we didn't react to pings for a while | ||
1941 | // (e.g. while stopped in gdb, or if network went down for a bit) | 1938 | // (e.g. while stopped in gdb, or if network went down for a bit) | ||
1942 | // Let's try connecting in again | 1939 | // Let's try connecting in again | ||
1943 | // TODO: delay this more and more like RC+ ? | 1940 | // TODO: delay this more and more like RC+ ? | ||
1944 | QTimer::singleShot(100, this, [this]() { | 1941 | QTimer::singleShot(100, this, [this]() { | ||
1945 | qCDebug(RUQOLA_LOG) << "Attempting to reconnect after the server disconnected us"; | 1942 | qCDebug(RUQOLA_LOG) << "Attempting to reconnect after the server disconnected us"; | ||
1946 | // Do the parts of logOut() that don't actually try talking to the server | 1943 | // Do the parts of logOut() that don't actually try talking to the server | ||
1947 | mRoomModel->clear(); | 1944 | mRoomModel->clear(); | ||
Show All 33 Lines |