summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-01-13 12:34:18 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-01-13 12:36:05 +0300
commitfba3c4711bff68cff5caba08cf8d4f5ea451fea2 (patch)
treed9d7a28f6cb2b6bca6b4da066149f1d0e0ee0ce3
parent7b1cd68e7075f5cf1dd821bed3ff07b5a5156182 (diff)
ICQ: offline file URL isn't stored after sending file
-rw-r--r--protocols/ICQ-WIM/src/proto.cpp2
-rw-r--r--protocols/ICQ-WIM/src/server.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/protocols/ICQ-WIM/src/proto.cpp b/protocols/ICQ-WIM/src/proto.cpp
index 2e2d866938..2cd7f50e4b 100644
--- a/protocols/ICQ-WIM/src/proto.cpp
+++ b/protocols/ICQ-WIM/src/proto.cpp
@@ -192,7 +192,7 @@ void CIcqProto::OnSendOfflineFile(DB::EventInfo &dbei, DB::FILE_BLOB &blob, void
p++;
blob.setName(p);
- blob.setUrl("boo");
+ blob.setUrl(ft->m_szHost);
blob.complete(ft->pfts.currentFileSize);
blob.setLocalName(ft->m_wszFileName);
}
diff --git a/protocols/ICQ-WIM/src/server.cpp b/protocols/ICQ-WIM/src/server.cpp
index ba6a41728b..91a54ee05e 100644
--- a/protocols/ICQ-WIM/src/server.cpp
+++ b/protocols/ICQ-WIM/src/server.cpp
@@ -1148,9 +1148,10 @@ LBL_Error:
JSONNode bundle, contents; contents.set_name("captionedContent");
contents << WCHAR_PARAM("caption", pTransfer->m_wszDescr) << WCHAR_PARAM("url", wszUrl);
- bundle << CHAR_PARAM("mediaType", "text") << CHAR_PARAM("text", "") << contents;
+ bundle << CHAR_PARAM("mediaType", "text") << WCHAR_PARAM("text", wszUrl) << contents;
CMStringW wszParts(FORMAT, L"[%s]", ptrW(json_write(&bundle)).get());
+ pTransfer->m_szHost = wszUrl;
if (!pTransfer->m_wszDescr.IsEmpty())
wszUrl += L" " + pTransfer->m_wszDescr;