diff options
author | George Hazan <george.hazan@gmail.com> | 2024-01-30 21:24:00 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-01-30 21:24:00 +0300 |
commit | ff3c91922762c0e2d41258e02f76b1c90771995c (patch) | |
tree | 818bdfafb3ccd1638a343471756d0201248a94b5 /protocols | |
parent | 20194aa845c3adeec1169a916bc71834716155b2 (diff) |
fixes #4142 (ICQ: событие "сообщение удалено" всегда на английском языке)
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/ICQ-WIM/src/server.cpp | 8 |
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");
}
}
|