Request and handle roster.
This commit is contained in:
parent
456cc295bc
commit
e71c601cbe
5 changed files with 111 additions and 15 deletions
|
@ -1,5 +1,5 @@
|
|||
all:
|
||||
objfw-compile -Wall -o tests *.m -I../src -L../src -lobjxmpp
|
||||
objfw-compile -Wall -g -o tests *.m -I../src -L../src -lobjxmpp
|
||||
|
||||
clean:
|
||||
rm -f tests *.o
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue