瀏覽代碼

Fix handling gifs in stickers

Tulir Asokan 3 年之前
父節點
當前提交
e2acab694c
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      portal.go

+ 2 - 1
portal.go

@@ -2087,7 +2087,8 @@ func (portal *Portal) convertMatrixMessage(sender *User, evt *event.Event) (*waP
 	}
 	if evt.Type == event.EventSticker {
 		content.MsgType = event.MsgImage
-	} else if content.MsgType == event.MsgImage && content.GetInfo().MimeType == "image/gif" {
+	}
+	if content.MsgType == event.MsgImage && content.GetInfo().MimeType == "image/gif" {
 		content.MsgType = event.MsgVideo
 	}