From 4330c62d2fa5b2752036b43018044c7c01b10695 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Tue, 12 Aug 2014 18:28:50 +0000 Subject: Tox: contact name, status, status message saving git-svn-id: http://svn.miranda-ng.org/main/trunk@10167 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_proto.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'protocols/Tox/src/tox_proto.cpp') diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp index 676039ce76..ee4c60b917 100644 --- a/protocols/Tox/src/tox_proto.cpp +++ b/protocols/Tox/src/tox_proto.cpp @@ -22,6 +22,8 @@ CToxProto::CToxProto(const char* protoName, const TCHAR* userName) : CreateProtoService(PS_CREATEACCMGRUI, &CToxProto::OnAccountManagerInit); + SetAllContactsStatus(ID_STATUS_OFFLINE); + hMessageProcess = 1; } @@ -143,6 +145,11 @@ int __cdecl CToxProto::SetStatus(int iNewStatus) ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus); + if (!Miranda_Terminated()) + { + SetAllContactsStatus(ID_STATUS_OFFLINE); + } + return 0; } else -- cgit v1.2.3