1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-10-23 06:53:23 +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) {
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