ObjXMPP  Check-in [82b5ab9068]

Overview
Comment:Only broadcast if we have a roster item.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 82b5ab906825962614da972868f61e6352647c3d6a33a20b7b492551ba73444a
User & Date: js on 2012-04-20 19:25:24
Other Links: manifest | tags
Context
2012-06-01
22:16
Add missing header files check-in: 6d15f9618b user: florob@babelmonkeys.de tags: trunk
2012-04-20
19:25
Only broadcast if we have a roster item. check-in: 82b5ab9068 user: js tags: trunk
2012-03-21
10:56
Update URL in copyright. check-in: 85bda4afee user: js tags: trunk
Changes

Modified src/XMPPRoster.m from [9941268f4e] to [4b6f06492d].

122
123
124
125
126
127
128





129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143





144
145
146
147
148
149
150







+
+
+
+
+










-
-
-
-
-







	element = [rosterElement elementForName: @"item"
				      namespace: XMPP_NS_ROSTER];

	if (element != nil) {
		rosterItem = [self XMPP_rosterItemWithXMLElement: element];

		[self XMPP_updateRosterItem: rosterItem];

		[delegates broadcastSelector: @selector(
						  roster:didReceiveRosterItem:)
				  withObject: self
				  withObject: rosterItem];
	}

	if ([connection supportsRosterVersioning]) {
		OFString *ver =
		    [[rosterElement attributeForName: @"ver"] stringValue];
		[dataStorage setStringValue: ver
				    forPath: @"roster.ver"];
		[dataStorage save];
	}

	[delegates broadcastSelector: @selector(
					  roster:didReceiveRosterItem:)
			  withObject: self
			  withObject: rosterItem];

	[connection_ sendStanza: [iq resultIQ]];

	return YES;
}

- (void)addRosterItem: (XMPPRosterItem*)rosterItem
{