Permalink
Browse files

Minor bug fix - a message with an empty <body/> still counts as havin…

…g a body.
  • Loading branch information...
1 parent 0f208ee commit 0219ef63f477ac87f61e254279d8d41c4e294acd @robbiehanson committed Jul 12, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 Core/XMPPMessage.m
View
@@ -112,9 +112,7 @@ - (NSError *)errorMessage {
- (BOOL)isMessageWithBody
{
- NSString *body = [[self elementForName:@"body"] stringValue];
-
- return ([body length] > 0);
+ return ([self elementForName:@"body"] != nil);
}
@end

0 comments on commit 0219ef6

Please sign in to comment.