From 0a365886f2d06750a707037d894e1492988eb53c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 23 Jul 2024 20:51:41 +0300 Subject: code cleaning --- protocols/SkypeWeb/src/skype_files.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'protocols/SkypeWeb') diff --git a/protocols/SkypeWeb/src/skype_files.cpp b/protocols/SkypeWeb/src/skype_files.cpp index 522e77dadd..a8045419be 100644 --- a/protocols/SkypeWeb/src/skype_files.cpp +++ b/protocols/SkypeWeb/src/skype_files.cpp @@ -100,6 +100,7 @@ void CSkypeProto::OnASMObjectUploaded(MHttpResponse *response, AsyncHttpRequest pRoot->SetAttribute("url_thumbnail", CMStringA(FORMAT, "https://api.asm.skype.com/v1/objects/%s/views/imgt1_anim", fup->uid.get())); pRoot->SetAttribute("width", FreeImage_GetWidth(pBitmap)); pRoot->SetAttribute("height", FreeImage_GetHeight(pBitmap)); + pRoot->SetText("To view this file, go to:"); FreeImage_Unload(pBitmap); href.Format("https://login.skype.com/login/sso?go=xmmfallback?pic=%s", fup->uid.get()); @@ -107,12 +108,10 @@ void CSkypeProto::OnASMObjectUploaded(MHttpResponse *response, AsyncHttpRequest else { pRoot->SetAttribute("type", "File.1"); pRoot->SetAttribute("url_thumbnail", CMStringA(FORMAT, "https://api.asm.skype.com/v1/objects/%s/views/original", fup->uid.get())); + pRoot->SetText("To view this shared photo, go to:"); href.Format("https://login.skype.com/login/sso?go=webclient.xmm&docid=%s", fup->uid.get()); } - auto *pTitle = doc.NewElement("Title"); pTitle->SetText(tszFile); pRoot->InsertEndChild(pTitle); - auto *pDescr = doc.NewElement("Description"); pDescr->SetText(fup->tszDesc.get()); pRoot->InsertEndChild(pDescr); - auto *xmlA = doc.NewElement("a"); xmlA->SetText(href); xmlA->SetAttribute("href", href); pRoot->InsertEndChild(xmlA); -- cgit v1.2.3