From 68f938161b0fc94f0e33994903739e73da0748d7 Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Fri, 3 Aug 2018 14:23:46 +0200 Subject: [PATCH] same space between chat bubbles --- Classes/ChatConversationTableView.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Classes/ChatConversationTableView.m b/Classes/ChatConversationTableView.m index b3f9de5ff..0ff816e0d 100644 --- a/Classes/ChatConversationTableView.m +++ b/Classes/ChatConversationTableView.m @@ -210,7 +210,7 @@ [_chatRoomDelegate tableViewIsScrolling]; } -static const CGFloat MESSAGE_SPACING_PERCENTAGE = 5.f; +static const CGFloat MESSAGE_SPACING_PERCENTAGE = 0.f; - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath { LinphoneEventLog *event = [[eventList objectAtIndex:indexPath.row] pointerValue]; @@ -231,7 +231,6 @@ static const CGFloat MESSAGE_SPACING_PERCENTAGE = 5.f; if (nextEvent) { LinphoneChatMessage *nextChat = linphone_event_log_get_chat_message(nextEvent); if (!linphone_address_equal(linphone_chat_message_get_from_address(nextChat), linphone_chat_message_get_from_address(chat))) { - LOGD(@"BITE"); height += tableView.frame.size.height * MESSAGE_SPACING_PERCENTAGE / 100; } }