cmd/notifications.go
changeset 167 1341bacd01c9
parent 166 79c0f8db66ff
child 185 564d92b54b00
equal deleted inserted replaced
166:79c0f8db66ff 167:1341bacd01c9
   102 				}
   102 				}
   103 			}
   103 			}
   104 			notifications = newNotifications
   104 			notifications = newNotifications
   105 		}
   105 		}
   106 
   106 
   107 		if accountsOpts.limit > 0 && len(notifications) > int(accountsOpts.limit) {
   107 		if accountsOpts.keep > 0 && len(notifications) > int(accountsOpts.keep) {
   108 			notifications = notifications[:accountsOpts.limit]
   108 			notifications = notifications[:accountsOpts.keep]
   109 		}
   109 		}
   110 		obj = notifications
   110 		obj = notifications
   111 	} else if opt.notifID > 0 {
   111 	} else if opt.notifID > 0 {
   112 		if opt.dismiss {
   112 		if opt.dismiss {
   113 			err = gClient.DismissNotification(opt.notifID)
   113 			err = gClient.DismissNotification(opt.notifID)