mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-27 07:59:20 +00:00
Make chatroom deletion waiting modal to prevent crash
This commit is contained in:
parent
5f640551dd
commit
e4fe4607a4
1 changed files with 4 additions and 0 deletions
|
|
@ -24,6 +24,8 @@
|
|||
#import "linphone/linphonecore.h"
|
||||
#import "PhoneMainView.h"
|
||||
#import "Utils.h"
|
||||
#import "SVProgressHUD.h"
|
||||
|
||||
|
||||
@implementation ChatsListTableView
|
||||
|
||||
|
|
@ -202,11 +204,13 @@ void deletion_chat_room_state_changed(LinphoneChatRoom *cr, LinphoneChatRoomStat
|
|||
// will force a call to [self loadData]
|
||||
[NSNotificationCenter.defaultCenter postNotificationName:kLinphoneMessageReceived object:view];
|
||||
view.waitView.hidden = TRUE;
|
||||
[SVProgressHUD dismiss];
|
||||
}
|
||||
}
|
||||
|
||||
- (void) deleteChatRooms {
|
||||
_waitView.hidden = FALSE;
|
||||
[SVProgressHUD show];
|
||||
bctbx_list_t *chatRooms = bctbx_list_copy(_chatRooms);
|
||||
while (chatRooms) {
|
||||
LinphoneChatRoom *chatRoom = (LinphoneChatRoom *)chatRooms->data;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue