only mark as read if closed intentionally
This commit is contained in:
parent
09a4d963d4
commit
f31bec7ef8
2 changed files with 9 additions and 7 deletions
|
|
@ -28,7 +28,7 @@ const MobileNav = {
|
|||
created () {
|
||||
this.notificationsCloseGesture = GestureService.swipeGesture(
|
||||
GestureService.DIRECTION_RIGHT,
|
||||
this.closeMobileNotifications,
|
||||
() => this.closeMobileNotifications(true),
|
||||
50
|
||||
)
|
||||
},
|
||||
|
|
@ -56,12 +56,14 @@ const MobileNav = {
|
|||
openMobileNotifications () {
|
||||
this.notificationsOpen = true
|
||||
},
|
||||
closeMobileNotifications () {
|
||||
closeMobileNotifications (markRead) {
|
||||
if (this.notificationsOpen) {
|
||||
// make sure to mark notifs seen only when the notifs were open and not
|
||||
// from close-calls.
|
||||
this.notificationsOpen = false
|
||||
this.markNotificationsAsSeen()
|
||||
if (markRead) {
|
||||
this.markNotificationsAsSeen()
|
||||
}
|
||||
}
|
||||
},
|
||||
notificationsTouchStart (e) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue