From d970469645b499c3e35e585f40205b9cd9cac350 Mon Sep 17 00:00:00 2001 From: MrMelon54 Date: Sat, 25 Nov 2023 12:25:07 +0000 Subject: [PATCH] Add sync value --- imap/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imap/client.go b/imap/client.go index 901cd3f..f02699c 100644 --- a/imap/client.go +++ b/imap/client.go @@ -69,7 +69,7 @@ func (c *Client) HandleWS(action string, args json.RawMessage) (map[string]any, if err != nil { return nil, err } - return map[string]any{"type": "fetch", "sync": 0, "value": marshal.MessageSliceJson(fetch)}, nil + return map[string]any{"type": "fetch", "sync": fetchArgs.Sync, "value": marshal.MessageSliceJson(fetch)}, nil case "move": // TODO: implementation case "rename":