Skip to content
This repository was archived by the owner on Aug 19, 2021. It is now read-only.

Commit ed23707

Browse files
author
Yue-Hsun Lin
committed
minor push for bug fixes.
Close issues #77, #79, #80
1 parent 2551cbf commit ed23707

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

safeslingermessager/safeslingermessager/ContactSelectView.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,6 @@ - (void)viewDidLoad {
6868
_appDelegate = (AppDelegate*)[[UIApplication sharedApplication]delegate];
6969

7070
[self setupActionSheetButtons];
71-
[self displayTitle];
7271

7372
[_showRecentLabel setText:NSLocalizedString(@"label_MostRecentOnly", @"Most recent only")];
7473

@@ -88,6 +87,7 @@ - (void)viewDidLoad {
8887
object:nil];
8988

9089
_filteredContacts = [NSMutableArray new];
90+
[self displayTitle];
9191
}
9292

9393
- (void)viewWillAppear:(BOOL)animated {
@@ -340,7 +340,9 @@ - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEd
340340
[_appDelegate.BackupSys PerformBackup];
341341

342342
[tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationTop];
343-
[_delegate contactDeleted:contact];
343+
if (_contactSelectionMode == ContactSelectionModeIntroduce) {
344+
[_delegate contactDeleted:contact];
345+
}
344346

345347
if (_contacts.count == 0) {
346348
[self reloadTable];

safeslingermessager/safeslingermessager/IntroduceView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ - (void)SetupContact:(ContactEntry*)SelectContact {
160160

161161
[User2Photo setImage:pickU2.photo.length > 0 ? [UIImage imageWithData:pickU2.photo] : [UIImage imageNamed:@"blank_contact.png"]];
162162

163-
NSString *buttonTitle = [NSString stringWithFormat:@"%@ %@\n%@ %@", NSLocalizedString(@"label_SendTo", @"To:"), [NSString compositeName:pickU1.firstName withLastName:pickU1.lastName], NSLocalizedString(@"label_Key", @"Key:"), [NSString ChangeGMT2Local:pickU1.keygenDate GMTFormat:DATABASE_TIMESTR LocalFormat:@"dd/MMM/yyyy"]];
163+
NSString *buttonTitle = [NSString stringWithFormat:@"%@ %@\n%@ %@", NSLocalizedString(@"label_SendTo", @"To:"), [NSString compositeName:pickU2.firstName withLastName:pickU2.lastName], NSLocalizedString(@"label_Key", @"Key:"), [NSString ChangeGMT2Local:pickU2.keygenDate GMTFormat:DATABASE_TIMESTR LocalFormat:@"dd/MMM/yyyy"]];
164164

165165
[User2Btn setTitle:buttonTitle forState:UIControlStateNormal];
166166
break;

0 commit comments

Comments
 (0)