summaryrefslogtreecommitdiff
path: root/protocols/WhatsApp/src/proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-02-08 13:30:36 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-02-08 13:30:36 +0000
commit149298bd03dcfce00815d798c9f670e8ea24e7e0 (patch)
treef9fa1a9215fca876599e465e278afaa21b22d73e /protocols/WhatsApp/src/proto.cpp
parent8be3a7a616f0739959fb0d4f5266973510bd4142 (diff)
support for private messages in chats
git-svn-id: http://svn.miranda-ng.org/main/trunk@12055 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/WhatsApp/src/proto.cpp')
-rw-r--r--protocols/WhatsApp/src/proto.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/protocols/WhatsApp/src/proto.cpp b/protocols/WhatsApp/src/proto.cpp
index ca412a77e8..c202503703 100644
--- a/protocols/WhatsApp/src/proto.cpp
+++ b/protocols/WhatsApp/src/proto.cpp
@@ -13,7 +13,8 @@ struct SearchParam
};
WhatsAppProto::WhatsAppProto(const char* proto_name, const TCHAR* username) :
- PROTO<WhatsAppProto>(proto_name, username)
+ PROTO<WhatsAppProto>(proto_name, username),
+ m_defaultGroup(getTStringA(WHATSAPP_KEY_DEF_GROUP))
{
update_loop_lock_ = CreateEvent(NULL, false, false, NULL);
@@ -49,6 +50,9 @@ WhatsAppProto::WhatsAppProto(const char* proto_name, const TCHAR* username) :
if (dwAttributes == 0xffffffff || (dwAttributes & FILE_ATTRIBUTE_DIRECTORY) == 0)
CreateDirectoryTreeT(m_tszAvatarFolder.c_str());
+ if (m_defaultGroup == NULL)
+ m_defaultGroup = mir_tstrdup(_T("WhatsApp"));
+
SetAllContactStatuses(ID_STATUS_OFFLINE, true);
}