Skip to content

Commit e6e92da

Browse files
committed
fix crashing sample app when user is not signed in
1 parent c93f05c commit e6e92da

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

samples/objc/FirebaseUI-demo-objc/Samples/Chat/FIRChatViewController.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ - (void)viewDidLoad {
7171
self.tableView.dataSource = self.dataSource;
7272
self.tableView.delegate = self;
7373

74+
if (![FIRAuth auth].currentUser) {
75+
self.inputTextField.enabled = NO;
76+
self.inputTextField.placeholder = @"Please sign in...";
77+
}
78+
7479
}
7580

7681

0 commit comments

Comments
 (0)