markAsRead() {
    if (this.props.notification.isRead()) return;

    app.session.user.pushAttributes({unreadNotificationCount: app.session.user.unreadNotificationCount() - 1});

    this.props.notification.save({isRead: true});
  }
/**
   * Mark the notification as read.
   */
Mark the notification as read.
Mark the notification as read .
markAsRead() {
    if (this.props.notification.isRead()) return;
    app.session.user.pushAttributes({unreadNotificationCount: app.session.user.unreadNotificationCount() - 1});
    this.props.notification.save({isRead: true});
  }
markAsRead ( ) { if ( this . props . notification . isRead ( ) ) return ; app . session . user . pushAttributes ( { unreadNotificationCount : app . session . user . unreadNotificationCount ( ) - 1 } ) ; this . props . notification . save ( { isRead : true } ) ; }
Mark the notification as read.
Mark the notification as read .