diff options
Diffstat (limited to 'protocols/Steam/src/steam_proto.cpp')
-rw-r--r-- | protocols/Steam/src/steam_proto.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/protocols/Steam/src/steam_proto.cpp b/protocols/Steam/src/steam_proto.cpp index 8d70098aa0..e0ec091bee 100644 --- a/protocols/Steam/src/steam_proto.cpp +++ b/protocols/Steam/src/steam_proto.cpp @@ -7,6 +7,7 @@ CSteamProto::CSteamProto(const char* protoName, const TCHAR* userName) CreateProtoService(PS_CREATEACCMGRUI, &CSteamProto::OnAccountManagerInit); m_idleTS = 0; + m_lastMessageTS = 0; isLoginAgain = false; m_hQueueThread = NULL; m_pollingConnection = NULL; @@ -319,6 +320,9 @@ int CSteamProto::SetStatus(int new_status) } else if (old_status == ID_STATUS_OFFLINE) { + // Load last message timestamp for correct loading of messages history + m_lastMessageTS = getDword("LastMessageTS", 0); + m_iStatus = ID_STATUS_CONNECTING; ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus); |