ObjXMPP  Check-in [bc252638ef]

Overview
Comment:XMPPRoster: Notify delegates before updating roster
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: bc252638efac8562d4e228c4bda4f32f087fdd85021cc62815d4b315a4f095ac
User & Date: florob@babelmonkeys.de on 2012-12-13 21:20:34
Other Links: manifest | tags
Context
2012-12-13
22:09
Make method names more consistent with ObjFW. check-in: 7f10dd9950 user: js tags: trunk
21:20
XMPPRoster: Notify delegates before updating roster check-in: bc252638ef user: florob@babelmonkeys.de tags: trunk
21:20
Make reconnecting possible. check-in: cd6ac2904d user: florob@babelmonkeys.de tags: trunk
Changes

Modified src/XMPPRoster.m from [6939ec3b66] to [22f6723529].

121
122
123
124
125
126
127
128
129
130
131
132
133


134
135
136
137
138
139
140
121
122
123
124
125
126
127


128
129
130
131
132
133
134
135
136
137
138
139
140







-
-




+
+








	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];

		[self XMPP_updateRosterItem: rosterItem];
	}

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