mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-03 20:46:28 +00:00
Change from chatroom_instatiated to state changed
This commit is contained in:
parent
6a34877a5b
commit
79e9f274e9
2 changed files with 6 additions and 6 deletions
|
|
@ -1400,8 +1400,9 @@ static void linphone_iphone_call_encryption_changed(LinphoneCore *lc, LinphoneCa
|
|||
[NSNotificationCenter.defaultCenter postNotificationName:kLinphoneCallEncryptionChanged object:self userInfo:dict];
|
||||
}
|
||||
|
||||
void linphone_iphone_chatroom_instantiated(LinphoneCore *lc, LinphoneChatRoom *cr) {
|
||||
[NSNotificationCenter.defaultCenter postNotificationName:kLinphoneMessageReceived object:nil];
|
||||
void linphone_iphone_chatroom_state_changed(LinphoneCore *lc, LinphoneChatRoom *cr, LinphoneChatRoomState state) {
|
||||
if (state == LinphoneChatRoomStateCreated)
|
||||
[NSNotificationCenter.defaultCenter postNotificationName:kLinphoneMessageReceived object:nil];
|
||||
}
|
||||
|
||||
#pragma mark - Message composition start
|
||||
|
|
@ -1418,8 +1419,7 @@ void linphone_iphone_chatroom_instantiated(LinphoneCore *lc, LinphoneChatRoom *c
|
|||
|
||||
UIAlertAction *defaultAction = [UIAlertAction actionWithTitle:@"OK"
|
||||
style:UIAlertActionStyleDefault
|
||||
handler:^(UIAlertAction *action){
|
||||
}];
|
||||
handler:^(UIAlertAction *action){}];
|
||||
[errView addAction:defaultAction];
|
||||
|
||||
UIAlertAction *callAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Call", nil)
|
||||
|
|
@ -1967,7 +1967,7 @@ void popup_link_account_cb(LinphoneAccountCreator *creator, LinphoneAccountCreat
|
|||
linphone_core_cbs_set_global_state_changed(cbs, linphone_iphone_global_state_changed);
|
||||
linphone_core_cbs_set_notify_received(cbs, linphone_iphone_notify_received);
|
||||
linphone_core_cbs_set_call_encryption_changed(cbs, linphone_iphone_call_encryption_changed);
|
||||
linphone_core_cbs_set_chat_room_instantiated(cbs, linphone_iphone_chatroom_instantiated);
|
||||
linphone_core_cbs_set_chat_room_state_changed(cbs, linphone_iphone_chatroom_state_changed);
|
||||
linphone_core_cbs_set_user_data(cbs, (__bridge void *)(self));
|
||||
|
||||
theLinphoneCore = linphone_factory_create_core_with_config(factory, cbs, _configDb);
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 8783aca2db07286c1033b4b6d233ea0e3527ce5d
|
||||
Subproject commit 2c9dfd6ca82191a977a1690a66ad3409b6439731
|
||||
Loading…
Add table
Reference in a new issue