1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-26 06:49:22 +00:00

Remove a warning

This commit is contained in:
Pierre HUBERT 2020-05-09 10:07:05 +02:00
parent 150529a740
commit 38f0257fa3

View File

@ -89,6 +89,8 @@ class _MembershipsPanelState extends SafeState<MembershipsPanel> {
case MembershipType.CONVERSATION:
return _buildConversationMembership(membership);
}
throw Exception("Unreachable statement!");
}
// TODO : add private messages icon support
@ -170,7 +172,8 @@ class _MembershipsPanelState extends SafeState<MembershipsPanel> {
ConversationsHelper.getConversationName(conversation, _usersList)),
subtitle: Text(diffTimeFromNowToStr(membership.lastActive) +
(conversation.isHavingCall ? "\n" + tr("Ongoing call") : "")),
onTap: () => MainController.of(context).openConversation(conversation.id),
onTap: () =>
MainController.of(context).openConversation(conversation.id),
),
);
}