msgconv/from-matrix: fix handling stickers

This commit is contained in:
Tulir Asokan 2024-10-14 12:31:47 +03:00
parent 878c7b8718
commit 94020f9088

View file

@ -80,7 +80,7 @@ func (mc *MessageConverter) ToWhatsApp(
ctx = context.WithValue(ctx, contextKeyClient, client)
ctx = context.WithValue(ctx, contextKeyPortal, portal)
if evt.Type == event.EventSticker {
content.MsgType = event.MsgImage
content.MsgType = event.MessageType(event.EventSticker.Type)
}
message := &waE2E.Message{}