BF: Ban and kick reasons are silently discarded

#2162
This commit is contained in:
manuroe
2019-01-22 17:18:42 +01:00
parent 996836fb31
commit 05da20f516
2 changed files with 7 additions and 2 deletions
@@ -990,12 +990,14 @@
if (weakSelf)
{
typeof(self) self = weakSelf;
UITextField *textField = [self->currentAlert textFields].firstObject;
self->currentAlert = nil;
[self startActivityIndicator];
// kick user
UITextField *textField = [self->currentAlert textFields].firstObject;
[self.mxRoom banUser:self.mxRoomMember.userId reason:textField.text success:^{
__strong __typeof(weakSelf)self = weakSelf;
@@ -1052,12 +1054,14 @@
if (weakSelf)
{
typeof(self) self = weakSelf;
UITextField *textField = [self->currentAlert textFields].firstObject;
self->currentAlert = nil;
[self startActivityIndicator];
// kick user
UITextField *textField = [self->currentAlert textFields].firstObject;
[self.mxRoom kickUser:self.mxRoomMember.userId reason:textField.text success:^{
__strong __typeof(weakSelf)self = weakSelf;