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
+2 -2
View File
@@ -2582,12 +2582,12 @@
if (weakSelf)
{
typeof(self) self = weakSelf;
UITextField *textField = [self->currentAlert textFields].firstObject;
NSString *text = [self->currentAlert textFields].firstObject.text;
self->currentAlert = nil;
[self startActivityIndicator];
[self.roomDataSource.room reportEvent:selectedEvent.eventId score:-100 reason:textField.text success:^{
[self.roomDataSource.room reportEvent:selectedEvent.eventId score:-100 reason:text success:^{
__strong __typeof(weakSelf)self = weakSelf;
[self stopActivityIndicator];