mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 04:04:18 +00:00 
			
		
		
		
	Highlight unread conversations
This commit is contained in:
		@@ -28,6 +28,7 @@ class MembershipsPanel extends StatefulWidget {
 | 
			
		||||
 | 
			
		||||
const _MembershipIconsWidth = 30.0;
 | 
			
		||||
 | 
			
		||||
/// TODO : add auto-refresh
 | 
			
		||||
class _MembershipsPanelState extends SafeState<MembershipsPanel> {
 | 
			
		||||
  final _refreshKey = GlobalKey<RefreshIndicatorState>();
 | 
			
		||||
  MembershipList _membershipList;
 | 
			
		||||
@@ -156,13 +157,17 @@ class _MembershipsPanelState extends SafeState<MembershipsPanel> {
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /// TODO : all calls notices
 | 
			
		||||
  Widget _buildConversationMembership(Membership membership) {
 | 
			
		||||
    return ListTile(
 | 
			
		||||
      dense: true,
 | 
			
		||||
      leading: Icon(Icons.message),
 | 
			
		||||
      title: Text(ConversationsHelper.getConversationName(
 | 
			
		||||
          membership.conversation, _usersList)),
 | 
			
		||||
      subtitle: Text(diffTimeFromNowToStr(membership.lastActive)),
 | 
			
		||||
    return Container(
 | 
			
		||||
      color: membership.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)),
 | 
			
		||||
      ),
 | 
			
		||||
    );
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user