* [gentoo-commits] gentoo-x86 commit in net-im/kmess/files: 2.0.5-msn_login_url_fix.patch
@ 2011-01-14 14:57 Markos Chandras (hwoarang)
0 siblings, 0 replies; only message in thread
From: Markos Chandras (hwoarang) @ 2011-01-14 14:57 UTC (permalink / raw
To: gentoo-commits
hwoarang 11/01/14 14:57:34
Added: 2.0.5-msn_login_url_fix.patch
Log:
Apply upstream patch to fix login problems
(Portage version: 2.2.0_alpha15/cvs/Linux x86_64)
Revision Changes Path
1.1 net-im/kmess/files/2.0.5-msn_login_url_fix.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/kmess/files/2.0.5-msn_login_url_fix.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-im/kmess/files/2.0.5-msn_login_url_fix.patch?rev=1.1&content-type=text/plain
Index: 2.0.5-msn_login_url_fix.patch
===================================================================
2011-01-08 (Valerio)
* Fixed crash when taking any action in the Contact Added User dialog.
Also removed an unnecessary signal-bouncing slot.
--- a/src/network/msnnotificationconnection.cpp
+++ b/src/network/msnnotificationconnection.cpp
@@ -1029,16 +1029,12 @@
hash.insert( QString::number(ack), "INBOX" );
// Ask for compose URL
- ack = sendCommand("URL", "COMPOSE");
+ ack = sendCommand("URL", "COMPOSE some.invalid@kmess.email" );
hash.insert( QString::number(ack), "COMPOSE" );
// Ask the personal profile URL
- ack = sendCommand("URL", "PROFILE");
+ ack = sendCommand("URL", "PROFILE 0x" + QString::number( CurrentAccount::instance()->getLanguageCode().toInt(), 8 ) );
hash.insert( QString::number(ack), "PROFILE" );
-
- // Ask the URL for change account info
- ack = sendCommand("URL", "PERSON");
- hash.insert( QString::number(ack), "PERSON" );
}
// Notify observers that the server is connected
--- a/src/utils/kmessshared.cpp
+++ b/src/utils/kmessshared.cpp
@@ -139,13 +139,11 @@
return QString();
}
+ // this will have our (urlencoded) dodgy email address we used to satisfy URL COMPOSE
+ // at the initial login. replace it where we actually want it to go.
QString command( folder );
-
- // Check if the user wants to send an email
- if( ! mailto.isEmpty() )
- {
- command += "?mailto=1&to=" + mailto;
- }
+
+ command = command.replace( "some.invalid%40kmess.email", mailto );
// Use the method into passport to compute the token
QString token( PassportLoginService::createHotmailToken( currentAccount->getToken( "Passport" ),
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-01-14 14:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-14 14:57 [gentoo-commits] gentoo-x86 commit in net-im/kmess/files: 2.0.5-msn_login_url_fix.patch Markos Chandras (hwoarang)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox