summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-07-31 19:38:53 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-07-31 19:38:53 +0300
commite394a0b2955f42bba483caa68aca56e6ad3046a0 (patch)
treefd47270f386f5a5844e3b5f9e37f53e8b23acf25 /protocols/SkypeWeb
parent966a705e634e3c934f5ac14dce1524714d2b31f0 (diff)
SkypeWeb: atavism extincted
Diffstat (limited to 'protocols/SkypeWeb')
-rw-r--r--protocols/SkypeWeb/src/skype_db.cpp1
-rw-r--r--protocols/SkypeWeb/src/skype_db.h1
-rw-r--r--protocols/SkypeWeb/src/skype_events.cpp19
3 files changed, 0 insertions, 21 deletions
diff --git a/protocols/SkypeWeb/src/skype_db.cpp b/protocols/SkypeWeb/src/skype_db.cpp
index 2786e7727b..e83563c735 100644
--- a/protocols/SkypeWeb/src/skype_db.cpp
+++ b/protocols/SkypeWeb/src/skype_db.cpp
@@ -25,7 +25,6 @@ struct {
static g_SkypeDBTypes[] =
{
{ SKYPE_DB_EVENT_TYPE_INCOMING_CALL, LPGEN("Incoming call"), DETF_NONOTIFY },
- { SKYPE_DB_EVENT_TYPE_EDITED_MESSAGE, LPGEN("Edited message"), 0 },
{ SKYPE_DB_EVENT_TYPE_ACTION, LPGEN("Action"), 0 },
{ SKYPE_DB_EVENT_TYPE_CALL_INFO, LPGEN("Call information"), 0 },
{ SKYPE_DB_EVENT_TYPE_FILETRANSFER_INFO, LPGEN("File transfer information"), 0 },
diff --git a/protocols/SkypeWeb/src/skype_db.h b/protocols/SkypeWeb/src/skype_db.h
index 65d1d80794..b498b6266d 100644
--- a/protocols/SkypeWeb/src/skype_db.h
+++ b/protocols/SkypeWeb/src/skype_db.h
@@ -25,7 +25,6 @@ enum SKYPE_DB_EVENT_TYPE
SKYPE_DB_EVENT_TYPE_CALL_INFO,
SKYPE_DB_EVENT_TYPE_FILETRANSFER_INFO,
SKYPE_DB_EVENT_TYPE_URIOBJ,
- SKYPE_DB_EVENT_TYPE_EDITED_MESSAGE,
SKYPE_DB_EVENT_TYPE_MOJI,
SKYPE_DB_EVENT_TYPE_FILE,
SKYPE_DB_EVENT_TYPE_UNKNOWN
diff --git a/protocols/SkypeWeb/src/skype_events.cpp b/protocols/SkypeWeb/src/skype_events.cpp
index 1ffd093905..af088bbe88 100644
--- a/protocols/SkypeWeb/src/skype_events.cpp
+++ b/protocols/SkypeWeb/src/skype_events.cpp
@@ -23,26 +23,7 @@ INT_PTR CSkypeProto::GetEventText(WPARAM pEvent, LPARAM datatype)
CMStringA szText = Translate("SkypeWeb error: Invalid data!");
- BOOL bUseBB = db_get_b(0, dbei->szModule, "UseBBCodes", 1);
switch (dbei->eventType) {
- case SKYPE_DB_EVENT_TYPE_EDITED_MESSAGE:
- {
- JSONNode jMsg = JSONNode::parse((char*)dbei->pBlob);
- if (jMsg) {
- JSONNode &jOriginalMsg = jMsg["original_message"];
- szText.AppendFormat(bUseBB ? Translate("[b]Original message:[/b]\n%s\n") : Translate("Original message:\n%s\n"), mir_utf8decodeA(jOriginalMsg["text"].as_string().c_str()));
- JSONNode &jEdits = jMsg["edits"];
- for (auto &it : jEdits) {
- time_t time = it["time"].as_int();
- char szTime[MAX_PATH];
- strftime(szTime, sizeof(szTime), "%X %x", localtime(&time));
-
- szText.AppendFormat(bUseBB ? Translate("[b]Edited at %s:[/b]\n%s\n") : Translate("Edited at %s:\n%s\n"), szTime, mir_utf8decodeA(it["text"].as_string().c_str()));
- }
- }
- }
- break;
-
case SKYPE_DB_EVENT_TYPE_CALL_INFO:
{
TiXmlDocument doc;