Fix crash on sending image

This commit is contained in:
Benjamin Verdier 2018-06-26 10:27:43 +02:00
parent 3bed6a18b0
commit de1b8cefc0
3 changed files with 0 additions and 16 deletions

View file

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

View file

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

View file

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