Request and handle roster.

This commit is contained in:
Jonathan Schleifer 2011-03-21 20:51:17 +01:00
parent 456cc295bc
commit e71c601cbe
5 changed files with 111 additions and 15 deletions

View file

@ -110,10 +110,17 @@ OF_APPLICATION_DELEGATE(AppDelegate)
- (void)connection: (XMPPConnection*)conn
wasBoundToJID: (XMPPJID*)jid
{
of_log(@"Bound to JID: %@", [jid fullJID]);
[conn requestRoster];
}
- (void)connectionDidReceiveRoster :(XMPPConnection*)conn
{
XMPPPresence *pres;
of_log(@"Bound to JID: %@", [jid fullJID]);
of_log(@"Got roster");
pres = [XMPPPresence presence];
[pres addPriority: 10];