From cf4803684c27c52fa3efa658ced617ea75641372 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 2 Nov 2019 12:54:18 +0100 Subject: [PATCH] Handle notifications related to friendship requests --- lib/ui/screens/notifications_screen.dart | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/ui/screens/notifications_screen.dart b/lib/ui/screens/notifications_screen.dart index 8504eae..d6c09a7 100644 --- a/lib/ui/screens/notifications_screen.dart +++ b/lib/ui/screens/notifications_screen.dart @@ -269,6 +269,9 @@ class _NotificationTile extends StatelessWidget { void _onTap(BuildContext context) { if (notification.onElemType == n.NotificationElementType.POST) { openPostFullScreen(notification.onElemId, context); + } else if (notification.onElemType == + n.NotificationElementType.FRIENDSHIP_REQUEST) { + openUserPage(userID: notification.fromUser, context: context); } // TODO : mark the notification as seen