1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 12:59:21 +00:00

Handle notifications related to friendship requests

This commit is contained in:
Pierre HUBERT 2019-11-02 12:54:18 +01:00
parent eb3adfd4d1
commit cf4803684c

View File

@ -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