From 3f1fd00fb69bc46eee4212341e81ba120633a2f3 Mon Sep 17 00:00:00 2001 From: Aine Date: Tue, 24 Jan 2023 16:34:31 +0200 Subject: [PATCH] fix file uploads from incoming emails into threads --- bot/email.go | 1 - 1 file changed, 1 deletion(-) diff --git a/bot/email.go b/bot/email.go index 0b5cfdb..e8b0087 100644 --- a/bot/email.go +++ b/bot/email.go @@ -128,7 +128,6 @@ func (b *Bot) IncomingEmail(ctx context.Context, email *email.Email) error { b.setThreadID(roomID, email.MessageID, threadID) b.setLastEventID(roomID, threadID, eventID) - threadID = eventID if !cfg.NoFiles() { b.sendFiles(ctx, roomID, email.Files, cfg.NoThreads(), threadID)