remove "." when constructing the attachment filename

* the mimetype library already adds the '.', so no need to
  add it manually

see #136
This commit is contained in:
Bernhard B
2021-05-27 20:37:19 +02:00
parent 68c6595ab9
commit 326e298801

View File

@@ -210,7 +210,7 @@ func send(c *gin.Context, attachmentTmpDir string, signalCliConfig string, numbe
mimeType := mimetype.Detect(dec)
attachmentTmpPath := attachmentTmpDir + u.String() + "." + mimeType.Extension()
attachmentTmpPath := attachmentTmpDir + u.String() + mimeType.Extension()
attachmentTmpPaths = append(attachmentTmpPaths, attachmentTmpPath)
f, err := os.Create(attachmentTmpPath)