fix attachments msg type parser
This commit is contained in:
@@ -48,7 +48,7 @@ func mimeMsgType(mime string) event.MessageType {
|
|||||||
if !strings.Contains(mime, "/") {
|
if !strings.Contains(mime, "/") {
|
||||||
return event.MsgFile
|
return event.MsgFile
|
||||||
}
|
}
|
||||||
msection := strings.SplitN(mime, "/", 1)[0]
|
msection := strings.Split(mime, "/")[0]
|
||||||
switch msection {
|
switch msection {
|
||||||
case "image":
|
case "image":
|
||||||
return event.MsgImage
|
return event.MsgImage
|
||||||
|
|||||||
Reference in New Issue
Block a user