ObjXMPP  Diff

Differences From Artifact [b04caf9947]:

To Artifact [4e83efc9ba]:


73
74
75
76
77
78
79
80

81







82
83
84



85
86
73
74
75
76
77
78
79

80
81
82
83
84
85
86
87
88



89
90
91
92
93







-
+

+
+
+
+
+
+
+
-
-
-
+
+
+


	    ID: (OFString*)ID_
{
	return [super initWithName: @"message"
			      type: type_
				ID: ID_];
}

- (void)addBody: (OFString*)body
- (void)setBody: (OFString*)body
{
	OFXMLElement *oldBody = [self elementForName: @"body"
					   namespace: XMPP_NS_CLIENT];

	if (oldBody != nil)
		[self removeChild: oldBody];

	if (body != nil)
	[self addChild: [OFXMLElement elementWithName: @"body"
					    namespace: XMPP_NS_CLIENT
					  stringValue: body]];
		[self addChild: [OFXMLElement elementWithName: @"body"
						    namespace: XMPP_NS_CLIENT
						  stringValue: body]];
}
@end