summary refs log tree commit diff stats
path: root/worker
diff options
context:
space:
mode:
Diffstat (limited to 'worker')
-rw-r--r--worker/types/messages.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/worker/types/messages.go b/worker/types/messages.go
index c7d5077..f43ab0a 100644
--- a/worker/types/messages.go
+++ b/worker/types/messages.go
@@ -149,6 +149,13 @@ type DirectoryInfo struct {
 	Info *models.DirectoryInfo
 }
 
+// Sent whenever we assume that a directory content changed
+// workers are requested to update the DirectoryInfo to display the unread count
+type DirectoryInfoUpdateRequest struct {
+	Message
+	Name string
+}
+
 type DirectoryContents struct {
 	Message
 	Uids []uint32