BF: Ban and kick reasons are silently discarded

#2162

Fix Steve's remark everywhere we do `[self->currentAlert textFields].firstObject.text`
This commit is contained in:
manuroe
2019-01-23 11:01:53 +01:00
parent c8ef76e3c4
commit b9c30cba0e
6 changed files with 13 additions and 16 deletions
@@ -1809,14 +1809,13 @@
{
typeof(self) self = weakSelf;
UITextField *textField = [self->currentAlert textFields].firstObject;
NSString *roomAliasOrId = textField.text;
NSString *roomAliasOrId = [self->currentAlert textFields].firstObject.text;
self->currentAlert = nil;
[self.activityIndicator startAnimating];
self->currentRequest = [self.mainSession joinRoom:textField.text success:^(MXRoom *room) {
self->currentRequest = [self.mainSession joinRoom:roomAliasOrId success:^(MXRoom *room) {
self->currentRequest = nil;
[self.activityIndicator stopAnimating];