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:
parent
eb3adfd4d1
commit
cf4803684c
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user