From f5040450314c4b4ab23ab3b93ab93e0dcb2ebba8 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 27 Jan 2015 22:01:19 +0000 Subject: WhatsApp: - fix for the ping thread; - fix for message notifications git-svn-id: http://svn.miranda-ng.org/main/trunk@11932 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.cpp') diff --git a/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.cpp b/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.cpp index e9b6377879..0dea74a6ac 100644 --- a/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.cpp +++ b/protocols/WhatsApp/src/WhatsAPI++/BinTreeNodeWriter.cpp @@ -266,7 +266,10 @@ void BinTreeNodeWriter::write(const ProtocolTreeNode &node, bool needsFlush) this->realOut->log(tmp.c_str()); } #endif - writeInternal(node); + if (node.tag.empty()) + this->out->write(0); + else + writeInternal(node); flushBuffer(needsFlush); } catch (exception& ex) { -- cgit v1.2.3