BF: Ban and kick reasons are silently discarded

#2162
This commit is contained in:
manuroe 2019-01-22 17:18:42 +01:00
parent ef35c9e3ed
commit c7552f4ad9
2 changed files with 7 additions and 2 deletions

View file

@ -14,6 +14,7 @@ Bug fix:
* Registration: improve validation UX on the terms screen (#2164).
* Registration: improve scrolling on the reCaptcha screen (#2165).
* Infinite loading wheel when taping on a fake room alias (#679).
* Ban and kick reasons are silently discarded (#2162).
Changes in 0.7.11 (2019-01-08)
===============================================

View file

@ -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;