soc.2009.transport: 80323a4b: Connect user automatically when he sent ...
hanzz at soc.pidgin.im
hanzz at soc.pidgin.im
Wed Jul 1 10:05:22 EDT 2009
-----------------------------------------------------------------
Revision: 80323a4be41b5f13e3bf54b0f2866e1decb9415a
Ancestor: 8ed217805822c1aa260921bf614b7931397971a6
Author: hanzz at soc.pidgin.im
Date: 2009-07-01T14:02:29
Branch: im.pidgin.soc.2009.transport
URL: http://d.pidgin.im/viewmtn/revision/info/80323a4be41b5f13e3bf54b0f2866e1decb9415a
Modified files:
main.cpp
ChangeLog:
Connect user automatically when he sent message. This will help if transport crashes and users don't know about it and try to send message.
-------------- next part --------------
============================================================
--- main.cpp 7d114c11baa840e625569f6d4a86b8e9425d51ee
+++ main.cpp 35f3043b0a89561e88f81bfdc8466c7bd617afd0
@@ -1383,7 +1383,7 @@ void GlooxMessageHandler::handleMessage
}
else {
Message s(Message::Chat, msg.from().full(), "This message couldn't be sent, because you are not connected to legacy network. You will be automatically reconnected soon.");
- s.setFrom(jid());
+ s.setFrom(msg.to().full());
j->send(s);
Tag *stanza = new Tag("presence");
stanza->addAttribute( "to", msg.from().bare());
More information about the Commits
mailing list