mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 12:14:11 +00:00 
			
		
		
		
	Handle notifications related to friendship requests
This commit is contained in:
		@@ -269,6 +269,9 @@ class _NotificationTile extends StatelessWidget {
 | 
				
			|||||||
  void _onTap(BuildContext context) {
 | 
					  void _onTap(BuildContext context) {
 | 
				
			||||||
    if (notification.onElemType == n.NotificationElementType.POST) {
 | 
					    if (notification.onElemType == n.NotificationElementType.POST) {
 | 
				
			||||||
      openPostFullScreen(notification.onElemId, context);
 | 
					      openPostFullScreen(notification.onElemId, context);
 | 
				
			||||||
 | 
					    } else if (notification.onElemType ==
 | 
				
			||||||
 | 
					        n.NotificationElementType.FRIENDSHIP_REQUEST) {
 | 
				
			||||||
 | 
					      openUserPage(userID: notification.fromUser, context: context);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // TODO : mark the notification as seen
 | 
					    // TODO : mark the notification as seen
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user