fix false-positive error message

This commit is contained in:
Aine
2022-10-19 13:43:09 +03:00
parent 841f5dfcfa
commit a4ade439a6

View File

@@ -200,8 +200,10 @@ func (b *Bot) sendFiles(ctx context.Context, roomID id.RoomID, files []*utils.Fi
for _, file := range files { for _, file := range files {
req := file.Convert() req := file.Convert()
err := b.lp.SendFile(roomID, req, file.MsgType, utils.RelatesTo(!noThreads, parentID)) err := b.lp.SendFile(roomID, req, file.MsgType, utils.RelatesTo(!noThreads, parentID))
if err != nil {
b.Error(ctx, roomID, "cannot upload file %s: %v", req.FileName, err) b.Error(ctx, roomID, "cannot upload file %s: %v", req.FileName, err)
} }
}
} }
func (b *Bot) getThreadID(roomID id.RoomID, messageID string) id.EventID { func (b *Bot) getThreadID(roomID id.RoomID, messageID string) id.EventID {