Pārlūkot izejas kodu

Fix handling gifs in stickers

Tulir Asokan 3 gadi atpakaļ
vecāks
revīzija
e2acab694c
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  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
 	}