ObjXMPP  Diff

Differences From Artifact [d26de2a21f]:

To Artifact [af27a5ba19]:


122
123
124
125
126
127
128
129
130
131
132
133
134
135
136

137
138
139
140
141
142
143
122
123
124
125
126
127
128


129





130
131
132
133
134
135
136
137







-
-

-
-
-
-
-
+








	[conn requestRoster];
}

- (void)connectionDidReceiveRoster :(XMPPConnection*)conn
{
	XMPPPresence *pres;
	OFEnumerator *enumerator;
	OFString *group;

	of_log(@"Got roster! Groups: %@", [[conn roster] groups]);
	enumerator = [[[conn roster] groups] objectEnumerator];
	while ((group = [enumerator nextObject]) != nil)
		of_log(@"Group %@: %@", group,
		    [[conn roster] rosterItemsInGroup: group]);
	of_log(@"Got roster: %@", [[conn roster] rosterItems]);

	pres = [XMPPPresence presence];
	[pres addPriority: 10];
	[pres addStatus: @"ObjXMPP test is working!"];

	[conn sendStanza: pres];
}