[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kopete-devel
Subject:    [kopete-devel] Msn live emoticons problem: possible solution.
From:       Flavio <flavio () flavioweb ! it>
Date:       2007-08-20 16:59:17
Message-ID: 1187629157.4402.10.camel () flavioweb-linux ! site
[Download RAW message or body]

In the last days i tried to understand the MSN protocol and, after
compiling the CVS version of kopete, i started to do someting...

First change in msnswithboardsocket.cpp:

QString sha1d = QString(KCodecs::base64Encode(SHA1::hash(ar)));
			QString size = QString::number( pictFile.size() );
			QString all = "Creator" + m_account->accountId() +	"Size" + size +
"Type2Location" + fi.fileName() + "FriendlyAAA=SHA1D" + sha1d;
			QString sha1c =
QString(KCodecs::base64Encode(SHA1::hashString(all.utf8())));
			picObj = "<msnobj Creator=\"" + m_account->accountId() + "\" Size=\""
+ size  + "\" Type=\"2\" Location=\""+ fi.fileName() + "\" Friendly=
\"AAA=\" SHA1D=\""+sha1d+ "\" SHA1C=\""+sha1c+"\"/>";

-Tyoe2Location- and -Type=\"2"- instead "3" as mentioned in -bug
report-.

After this i noticed this debug message:

EUF-GUID: {A4268EEC-FEC5-49E5-95C3-F126696BDBF6}
SessionID: 275406675
SChannelState: 0
Capabilities-Flags: 1
AppID: 11

so i changed this in dispatcher.cpp on line 385:

if(applicationId == 1  || applicationId == 12  || applicationId == 11)

i simply added the "|| applicationId == 11".


At the moment i tried with 2 diffrent msn clients and seems to work...

Hope this help.

_______________________________________________
kopete-devel mailing list
kopete-devel@kde.org
https://mail.kde.org/mailman/listinfo/kopete-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic