mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-07-31 15:37:01 +00:00
Show proper missing name or email in the feedback list view button instead of "(null)" string
This commit is contained in:
parent
fd6208b533
commit
92cb2d6dcf
@ -437,11 +437,11 @@
|
||||
if ([self.manager requireUserName] == BITFeedbackUserDataElementRequired ||
|
||||
([self.manager requireUserName] == BITFeedbackUserDataElementOptional && [self.manager userName] != nil)
|
||||
) {
|
||||
title = [NSString stringWithFormat:BITHockeyLocalizedString(@"HockeyFeedbackListButonUserDataWithName"), [self.manager userName]];
|
||||
title = [NSString stringWithFormat:BITHockeyLocalizedString(@"HockeyFeedbackListButonUserDataWithName"), [self.manager userName] ?: @"-"];
|
||||
} else if ([self.manager requireUserEmail] == BITFeedbackUserDataElementRequired ||
|
||||
([self.manager requireUserEmail] == BITFeedbackUserDataElementOptional && [self.manager userEmail] != nil)
|
||||
) {
|
||||
title = [NSString stringWithFormat:BITHockeyLocalizedString(@"HockeyFeedbackListButonUserDataWithEmail"), [self.manager userEmail]];
|
||||
title = [NSString stringWithFormat:BITHockeyLocalizedString(@"HockeyFeedbackListButonUserDataWithEmail"), [self.manager userEmail] ?: @"-"];
|
||||
} else if ([self.manager requireUserName] == BITFeedbackUserDataElementOptional) {
|
||||
title = BITHockeyLocalizedString(@"HockeyFeedbackListButonUserDataSetName");
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user