Commit 964c525e authored by Daniel Henninger's avatar Daniel Henninger Committed by dhenninger

Fix for yahoo mail notification.

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/trunk/src/plugins/gateway@4957 b35dd754-fafc-0310-a699-88a17e54d16e
parent cb2fc160
...@@ -91,6 +91,7 @@ public class MSNListener extends MsnAdapter { ...@@ -91,6 +91,7 @@ public class MSNListener extends MsnAdapter {
*/ */
public void contactListSyncCompleted(MsnMessenger messenger) { public void contactListSyncCompleted(MsnMessenger messenger) {
for (MsnContact msnContact : messenger.getContactList().getContacts()) { for (MsnContact msnContact : messenger.getContactList().getContacts()) {
Log.debug("Got contact "+msnContact);
msnSession.storeFriend(msnContact); msnSession.storeFriend(msnContact);
} }
msnSession.syncUsers(); msnSession.syncUsers();
...@@ -105,6 +106,7 @@ public class MSNListener extends MsnAdapter { ...@@ -105,6 +106,7 @@ public class MSNListener extends MsnAdapter {
p.setFrom(msnSession.getTransport().convertIDToJID(friend.getEmail().toString())); p.setFrom(msnSession.getTransport().convertIDToJID(friend.getEmail().toString()));
((MSNTransport)msnSession.getTransport()).setUpPresencePacket(p, friend.getStatus()); ((MSNTransport)msnSession.getTransport()).setUpPresencePacket(p, friend.getStatus());
msnSession.getTransport().sendPacket(p); msnSession.getTransport().sendPacket(p);
msnSession.storeFriend(friend);
} }
} }
...@@ -87,7 +87,7 @@ public class YahooSessionListener implements SessionListener { ...@@ -87,7 +87,7 @@ public class YahooSessionListener implements SessionListener {
m.setType(Message.Type.headline); m.setType(Message.Type.headline);
m.setTo(yahooSession.getJIDWithHighestPriority()); m.setTo(yahooSession.getJIDWithHighestPriority());
m.setFrom(yahooSession.getTransport().getJID()); m.setFrom(yahooSession.getTransport().getJID());
m.setBody(messageDecoder.decodeToText(event.getMessage())); m.setBody("You have "+event.getMailCount()+" message(s) waiting in your Yahoo! mail.");
yahooSession.getTransport().sendPacket(m); yahooSession.getTransport().sendPacket(m);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment