diff --git a/lib/ui/widgets/tablet_mode/memberships_panel.dart b/lib/ui/widgets/tablet_mode/memberships_panel.dart index f207354..539b33b 100644 --- a/lib/ui/widgets/tablet_mode/memberships_panel.dart +++ b/lib/ui/widgets/tablet_mode/memberships_panel.dart @@ -157,16 +157,19 @@ class _MembershipsPanelState extends SafeState { ); } - /// TODO : all calls notices Widget _buildConversationMembership(Membership membership) { + final conversation = membership.conversation; return Container( - color: membership.conversation.sawLastMessage ? null : Color(0xFF1c443a), + color: conversation.isHavingCall + ? Color(0xFF815d1d) + : (conversation.sawLastMessage ? null : Color(0xFF1c443a)), child: ListTile( dense: true, - leading: Icon(Icons.message), - title: Text(ConversationsHelper.getConversationName( - membership.conversation, _usersList)), - subtitle: Text(diffTimeFromNowToStr(membership.lastActive)), + leading: Icon(conversation.isHavingCall ? Icons.phone : Icons.message), + title: Text( + ConversationsHelper.getConversationName(conversation, _usersList)), + subtitle: Text(diffTimeFromNowToStr(membership.lastActive) + + (conversation.isHavingCall ? "\n" + tr("Ongoing call") : "")), ), ); }