Removed redundant post of kLinphoneMessageReceived notification when chat conversation is opened

This commit is contained in:
Christophe Deschamps 2022-11-16 10:19:58 +01:00 committed by QuentinArguillere
parent 581d2dbf50
commit e02580bade

View file

@ -1440,8 +1440,6 @@ void on_chat_room_chat_message_received(LinphoneChatRoom *cr, const LinphoneEven
bool isDisplayingBottomOfTable = [view.tableController.tableView indexPathsForVisibleRows].lastObject.row == [view.tableController totalNumberOfItems] - 1;
[view.tableController addEventEntry:(LinphoneEventLog *)event_log];
[NSNotificationCenter.defaultCenter postNotificationName:kLinphoneMessageReceived object:view];
if (isDisplayingBottomOfTable) {
[view.tableController scrollToBottom:TRUE];