+ Attachment handling

This commit is contained in:
moritz haarmann 2014-02-24 10:36:49 +01:00
parent 1c120b9588
commit 3f7e6904a6

View File

@ -709,7 +709,7 @@
} }
} }
} else { } else {
if ([(NSDictionary *)objMessage objectForKey:@"clean_text"] || [(NSDictionary *)objMessage objectForKey:@"text"]) { if ([(NSDictionary *)objMessage objectForKey:@"clean_text"] || [(NSDictionary *)objMessage objectForKey:@"text"] || [(NSDictionary *)objMessage objectForKey:@"attachments"]) {
BITFeedbackMessage *message = [[BITFeedbackMessage alloc] init]; BITFeedbackMessage *message = [[BITFeedbackMessage alloc] init];
message.text = [(NSDictionary *)objMessage objectForKey:@"clean_text"] ?: [(NSDictionary *)objMessage objectForKey:@"text"] ?: @""; message.text = [(NSDictionary *)objMessage objectForKey:@"clean_text"] ?: [(NSDictionary *)objMessage objectForKey:@"text"] ?: @"";
message.name = [(NSDictionary *)objMessage objectForKey:@"name"] ?: @""; message.name = [(NSDictionary *)objMessage objectForKey:@"name"] ?: @"";
@ -1018,6 +1018,9 @@
} }
} }
@end @end
#endif /* HOCKEYSDK_FEATURE_FEEDBACK */ #endif /* HOCKEYSDK_FEATURE_FEEDBACK */