From d7a80a37e28147ac658e8c094c8daad78e52d195 Mon Sep 17 00:00:00 2001 From: Gautier Pelloux-Prayer Date: Thu, 7 Jan 2016 11:52:09 +0100 Subject: [PATCH] chat: fix badge count on iPad --- Classes/ChatsListTableView.m | 5 +++++ Classes/LinphoneUI/Base.lproj/UIChatCell.xib | 2 +- Classes/LinphoneUI/UIChatCell.h | 2 +- Classes/LinphoneUI/UIChatCell.m | 5 ++++- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Classes/ChatsListTableView.m b/Classes/ChatsListTableView.m index fdb622216..21d1d0d66 100644 --- a/Classes/ChatsListTableView.m +++ b/Classes/ChatsListTableView.m @@ -152,6 +152,11 @@ static void chatTable_free_chatrooms(void *data) { LinphoneChatRoom *chatRoom = (LinphoneChatRoom *)ms_list_nth_data(data, (int)[indexPath row]); ChatConversationView *view = VIEW(ChatConversationView); [view setChatRoom:chatRoom]; + // on iPad, force unread bubble to disappear by reloading the cell + if (IPAD) { + UIChatCell *cell = [tableView cellForRowAtIndexPath:indexPath]; + [cell updateUnreadBadge]; + } [PhoneMainView.instance changeCurrentView:view.compositeViewDescription push:TRUE]; } } diff --git a/Classes/LinphoneUI/Base.lproj/UIChatCell.xib b/Classes/LinphoneUI/Base.lproj/UIChatCell.xib index 4f89590d7..a9bdae0cc 100644 --- a/Classes/LinphoneUI/Base.lproj/UIChatCell.xib +++ b/Classes/LinphoneUI/Base.lproj/UIChatCell.xib @@ -50,7 +50,7 @@