Skip to content

Commit 0219ef6

Browse files
committed
Minor bug fix - a message with an empty <body/> still counts as having a body.
1 parent 0f208ee commit 0219ef6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Core/XMPPMessage.m

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,7 @@ - (NSError *)errorMessage {
112112

113113
- (BOOL)isMessageWithBody
114114
{
115-
NSString *body = [[self elementForName:@"body"] stringValue];
116-
117-
return ([body length] > 0);
115+
return ([self elementForName:@"body"] != nil);
118116
}
119117

120118
@end

0 commit comments

Comments
 (0)