diff --git a/Classes/ChatConversationTableView.m b/Classes/ChatConversationTableView.m index ec1fd358f..4a9f924fc 100644 --- a/Classes/ChatConversationTableView.m +++ b/Classes/ChatConversationTableView.m @@ -40,15 +40,6 @@ [super viewWillAppear:animated]; self.tableView.accessibilityIdentifier = @"ChatRoom list"; _imagesInChatroom = [NSMutableDictionary dictionary]; - - [NSNotificationCenter.defaultCenter addObserver:self - selector:@selector(updateData) - name:kLinphoneMessageValueUpdated - object:nil]; -} - -- (void)viewWillDisappear:(BOOL)animated { - [NSNotificationCenter.defaultCenter removeObserver:self name:kLinphoneMessageValueUpdated object:nil]; } #pragma mark - @@ -113,10 +104,6 @@ } [self.tableView reloadRowsAtIndexPaths:[NSArray arrayWithObject:[NSIndexPath indexPathForRow:index inSection:0]] withRowAnimation:FALSE]; // just reload - [self.tableView reloadData]; - [self.tableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:index inSection:0] - atScrollPosition:UITableViewScrollPositionBottom - animated:YES]; return; } diff --git a/Classes/LinphoneManager.h b/Classes/LinphoneManager.h index 64da44824..9dd0454de 100644 --- a/Classes/LinphoneManager.h +++ b/Classes/LinphoneManager.h @@ -57,7 +57,6 @@ extern NSString *const kLinphoneCallEncryptionChanged; extern NSString *const kLinphoneFileTransferSendUpdate; extern NSString *const kLinphoneFileTransferRecvUpdate; extern NSString *const kLinphoneQRCodeFound; -extern NSString *const kLinphoneMessageValueUpdated; typedef enum _NetworkType { network_none = 0, diff --git a/Classes/LinphoneManager.m b/Classes/LinphoneManager.m index c3b290b66..c0c078c10 100644 --- a/Classes/LinphoneManager.m +++ b/Classes/LinphoneManager.m @@ -77,7 +77,6 @@ NSString *const kLinphoneCallEncryptionChanged = @"LinphoneCallEncryptionChanged NSString *const kLinphoneFileTransferSendUpdate = @"LinphoneFileTransferSendUpdate"; NSString *const kLinphoneFileTransferRecvUpdate = @"LinphoneFileTransferRecvUpdate"; NSString *const kLinphoneQRCodeFound = @"LinphoneQRCodeFound"; -NSString *const kLinphoneMessageValueUpdated = @"LinphoneMessageValueUpdated"; const int kLinphoneAudioVbrCodecDefaultBitrate = 36; /*you can override this from linphonerc or linphonerc-factory*/ @@ -2901,7 +2900,6 @@ static int comp_call_state_paused(const LinphoneCall *call, const void *param) { NSData *data = [NSJSONSerialization dataWithJSONObject:appDataDict options:0 error:nil]; NSString *appdataJSON = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding]; linphone_chat_message_set_appdata(msg, [appdataJSON UTF8String]); - [NSNotificationCenter.defaultCenter postNotificationName:kLinphoneMessageValueUpdated object:nil]; } #pragma mark - LPConfig Functions