summaryrefslogtreecommitdiff
path: root/internal/notices
diff options
context:
space:
mode:
Diffstat (limited to 'internal/notices')
-rw-r--r--internal/notices/notices.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/notices/notices.go b/internal/notices/notices.go
index 4fbd807..40b5d1f 100644
--- a/internal/notices/notices.go
+++ b/internal/notices/notices.go
@@ -58,3 +58,10 @@ func (m Model) New(msg string) tea.Cmd {
return NoticeExpiryMsg(uuid)
}
}
+
+func (m Model) Reset(uuid string) tea.Cmd {
+ return func() tea.Msg {
+ time.Sleep(expiryDelay * time.Second)
+ return NoticeExpiryMsg(uuid)
+ }
+}