ObjXMPP  Check-in [9d27e39805]

Overview
Comment:Fix XMPPPresence's getter for type
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9d27e3980535c4a74eb76626288c9fec1233fc4a91f7ef5722cc5e71b917e0a3
User & Date: florob@babelmonkeys.de on 2012-01-26 13:52:17
Other Links: manifest | tags
Context
2012-01-26
22:25
Merge heads. check-in: 25962dfdba user: js tags: trunk
13:52
Fix XMPPPresence's getter for type check-in: 9d27e39805 user: florob@babelmonkeys.de tags: trunk
2012-01-25
20:55
If a presence has no type, assume "available", as per RFC 6121. check-in: e009b1b5c8 user: js tags: trunk
Changes

Modified src/XMPPPresence.m from [9d5fdb884e] to [a795a3af8b].

77
78
79
80
81
82
83

84
85
86
87
88
89
90
				ID: ID_];
}

- (OFString*)type
{
	if (type == nil)
		return @"available";

}

- (void)addShow: (OFString*)show
{
	[self addChild: [OFXMLElement elementWithName: @"show"
					    namespace: XMPP_NS_CLIENT
					  stringValue: show]];







>







77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
				ID: ID_];
}

- (OFString*)type
{
	if (type == nil)
		return @"available";
	return [[type copy] autorelease];
}

- (void)addShow: (OFString*)show
{
	[self addChild: [OFXMLElement elementWithName: @"show"
					    namespace: XMPP_NS_CLIENT
					  stringValue: show]];