diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-14 13:22:59 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2015-09-14 13:22:59 +0000 |
commit | 85f8574ae52fb057a82ea35d2cd1a886944ff8c6 (patch) | |
tree | da2019e9f2f26e8d0472c6feb1e2411927213f85 /protocols | |
parent | 86bf4dd4f66a8f0c0ba24b34a9475a09547ab50e (diff) |
SkypeWeb: attempt to fix double messages
git-svn-id: http://svn.miranda-ng.org/main/trunk@15349 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/SkypeWeb/src/skype_messages.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/SkypeWeb/src/skype_messages.cpp b/protocols/SkypeWeb/src/skype_messages.cpp index 3b49886705..a7023cc800 100644 --- a/protocols/SkypeWeb/src/skype_messages.cpp +++ b/protocols/SkypeWeb/src/skype_messages.cpp @@ -186,7 +186,8 @@ void CSkypeProto::OnPrivateMessageEvent(const JSONNode &node) {
if (IsMe(szFromSkypename))
{
- szMessageId.Truncate(szMessageId.GetLength() - 3);
+ if (szMessageId.GetLength() && szMessageId[szMessageId.GetLength() - 1] == '0' && szMessageId[szMessageId.GetLength() - 2] == '0' && szMessageId[szMessageId.GetLength() - 2] == '0')
+ szMessageId.Truncate(szMessageId.GetLength() - 3);
HANDLE hMessage = (HANDLE)(std::stoull(szMessageId.GetString()));
if (m_OutMessages.getIndex(hMessage) != -1)
{
|