Fixed contact bug
Robert Ismo me@robertismo.com
Fri, 26 Jun 2026 17:59:54 -0500
3 files changed,
5 insertions(+),
3 deletions(-)
M
email.go
→
email.go
@@ -269,7 +269,6 @@ }
func (app *App) PopulateMissingMessageContents(budget int) (int, error) { ImapSyncMutex.Lock() - defer runtime.EventsEmit(app.ctx, "reload") defer ImapSyncMutex.Unlock() app.Log("Populating missing message contents...").@@ -287,7 +286,9 @@ return 0, err
} fetchedCount := 0 - + if len(messages) == 0 { + return 0, nil + } for _, msg := range messages { conv := msg.Conversation if conv.ID == 0 || conv.ServerRecipient.Value == "" {@@ -358,6 +359,7 @@ }
fetchCmd.Close() } + runtime.EventsEmit(app.ctx, "reload") app.Log("Populated content for %d messages.", fetchedCount). Stdout().StatusLine() return fetchedCount, nil
M
frontend/src/routes/+layout.svelte
→
frontend/src/routes/+layout.svelte
@@ -39,7 +39,6 @@ statusLineQueue.push(message);
}) EventsOn("reload", async () => { - global.contact = await GetUserContact(); global.contacts = await GetAllContactsSorted(); global.conversations = await GetAllConversations(); });