fix attachments msg type parser
This commit is contained in:
parent
af3e23f630
commit
14c0ebf1f1
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ func mimeMsgType(mime string) event.MessageType {
|
|||
if !strings.Contains(mime, "/") {
|
||||
return event.MsgFile
|
||||
}
|
||||
msection := strings.SplitN(mime, "/", 1)[0]
|
||||
msection := strings.Split(mime, "/")[0]
|
||||
switch msection {
|
||||
case "image":
|
||||
return event.MsgImage
|
||||
|
|
|
|||
Loading…
Reference in a new issue