From 372ac02eb8c16dfba2a8a885ee00e1cda10a7ed0 Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Mon, 7 Jun 2021 19:16:38 +0200 Subject: [PATCH] Ephemeral indicator inside chat list view --- Classes/LinphoneUI/Base.lproj/UIChatCell.xib | 10 ++++++++-- Classes/LinphoneUI/UIChatCell.h | 1 + Classes/LinphoneUI/UIChatCell.m | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/Classes/LinphoneUI/Base.lproj/UIChatCell.xib b/Classes/LinphoneUI/Base.lproj/UIChatCell.xib index 122bdeca0..ea61f9e49 100644 --- a/Classes/LinphoneUI/Base.lproj/UIChatCell.xib +++ b/Classes/LinphoneUI/Base.lproj/UIChatCell.xib @@ -1,9 +1,9 @@ - + - + @@ -13,6 +13,7 @@ + @@ -85,6 +86,10 @@ + @@ -95,6 +100,7 @@ + diff --git a/Classes/LinphoneUI/UIChatCell.h b/Classes/LinphoneUI/UIChatCell.h index ba1cf6742..d5d0327b9 100644 --- a/Classes/LinphoneUI/UIChatCell.h +++ b/Classes/LinphoneUI/UIChatCell.h @@ -37,6 +37,7 @@ @property(weak, nonatomic) IBOutlet UIBouncingView *unreadCountView; @property(weak, nonatomic) IBOutlet UILabel *unreadCountLabel; @property (weak, nonatomic) IBOutlet UIImageView *imdmIcon; +@property (weak, nonatomic) IBOutlet UIImageView *ephemeral; - (id)initWithIdentifier:(NSString*)identifier; diff --git a/Classes/LinphoneUI/UIChatCell.m b/Classes/LinphoneUI/UIChatCell.m index 2aa17198a..299898dbf 100644 --- a/Classes/LinphoneUI/UIChatCell.m +++ b/Classes/LinphoneUI/UIChatCell.m @@ -148,6 +148,7 @@ _chatContentLabel.text = nil; [self updateUnreadBadge]; + _ephemeral.hidden = !linphone_chat_room_ephemeral_enabled(chatRoom); } - (void)updateUnreadBadge {