From ff3c91922762c0e2d41258e02f76b1c90771995c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 30 Jan 2024 21:24:00 +0300 Subject: =?UTF-8?q?fixes=20#4142=20(ICQ:=20=D1=81=D0=BE=D0=B1=D1=8B=D1=82?= =?UTF-8?q?=D0=B8=D0=B5=20"=D1=81=D0=BE=D0=BE=D0=B1=D1=89=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D1=83=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD=D0=BE"=20?= =?UTF-8?q?=D0=B2=D1=81=D0=B5=D0=B3=D0=B4=D0=B0=20=D0=BD=D0=B0=20=D0=B0?= =?UTF-8?q?=D0=BD=D0=B3=D0=BB=D0=B8=D0=B9=D1=81=D0=BA=D0=BE=D0=BC=20=D1=8F?= =?UTF-8?q?=D0=B7=D1=8B=D0=BA=D0=B5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- protocols/ICQ-WIM/src/server.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'protocols/ICQ-WIM/src/server.cpp') diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp index 10a7905f27..b9aa8ad77f 100644 --- a/protocols/ICQ-WIM/src/server.cpp +++ b/protocols/ICQ-WIM/src/server.cpp @@ -487,8 +487,10 @@ void CIcqProto::ParseMessage(MCONTACT hContact, __int64 &lastMsgId, const JSONNo } else { if (it["class"].as_mstring() == L"event") { + CMStringW wszType(it["eventTypeId"].as_mstring()); + // user added you - if (it["eventTypeId"].as_mstring() == L"27:33000") { + if (wszType == L"27:33000") { if (bLocalTime) { CMStringA id = getMStringA(hContact, DB_KEY_ID); int pos = id.Find('@'); @@ -525,6 +527,10 @@ void CIcqProto::ParseMessage(MCONTACT hContact, __int64 &lastMsgId, const JSONNo } return; } + + // message was deleted + if (wszType == L"27:51000") + wszText = TranslateT("Message was deleted"); } } -- cgit v1.2.3