ObjXMPP  Check-in [cf986fb621]

Overview
Comment:XMPPContact: Handle presences without resource
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: cf986fb6217be948c62d8aeeccdce7bb5bc7122385068ec149142c9068ec4faf
User & Date: florob@babelmonkeys.de on 2013-02-10 22:23:56
Other Links: manifest | tags
Context
2013-02-10
22:24
XMPPPresence: Treat no priority element as a priority of 0 check-in: 800ffa81e3 user: florob@babelmonkeys.de tags: trunk
22:23
XMPPContact: Handle presences without resource check-in: cf986fb621 user: florob@babelmonkeys.de tags: trunk
17:01
Fix selector for exception handling in XMPPConnection check-in: b654efc74b user: florob@babelmonkeys.de tags: trunk
Changes

Modified src/XMPPContact.m from [450455b9d5] to [2a7d3a0187].

71
72
73
74
75
76
77

78
79




80
81
82
83
84

85





86
87
88
89
90
91
92
{
	OF_SETTER(rosterItem, rosterItem_, YES, 0);
}

- (void)XMPP_setPresence: (XMPPPresence*)presence
		resource: (OFString*)resource
{

	[presences setObject: presence
		      forKey: resource];




	OF_SETTER(lockedOnJID, nil, YES, 0);
}

- (void)XMPP_removePresenceForResource: (OFString*)resource
{

	[presences removeObjectForKey: resource];





	OF_SETTER(lockedOnJID, nil, YES, 0);
}

- (void)XMPP_setLockedOnJID: (XMPPJID*)JID;
{
	OF_SETTER(lockedOnJID, JID, YES, 0);
}







>
|
|
>
>
>
>





>
|
>
>
>
>
>







71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
	OF_SETTER(rosterItem, rosterItem_, YES, 0);
}

- (void)XMPP_setPresence: (XMPPPresence*)presence
		resource: (OFString*)resource
{
	if (resource != nil)
		[presences setObject: presence
			      forKey: resource];
	else
		[presences setObject: presence
			      forKey: @""];

	OF_SETTER(lockedOnJID, nil, YES, 0);
}

- (void)XMPP_removePresenceForResource: (OFString*)resource
{
	if (resource != nil) {
		[presences removeObjectForKey: resource];
	} else {
		[presences release];
		presences = [[OFMutableDictionary alloc] init];
	}

	OF_SETTER(lockedOnJID, nil, YES, 0);
}

- (void)XMPP_setLockedOnJID: (XMPPJID*)JID;
{
	OF_SETTER(lockedOnJID, JID, YES, 0);
}