equal
deleted
inserted
replaced
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) |