summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-01-30 21:24:00 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-01-30 21:24:00 +0300
commitff3c91922762c0e2d41258e02f76b1c90771995c (patch)
tree818bdfafb3ccd1638a343471756d0201248a94b5 /protocols
parent20194aa845c3adeec1169a916bc71834716155b2 (diff)
fixes #4142 (ICQ: событие "сообщение удалено" всегда на английском языке)
Diffstat (limited to 'protocols')
-rw-r--r--protocols/ICQ-WIM/src/server.cpp8
1 files changed, 7 insertions, 1 deletions
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");
}
}