Skip to content

Commit

Permalink
msgconv/from-signal: fix panic bridging stickers
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Aug 11, 2024
1 parent 6f4781f commit 94ae690
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/msgconv/from-signal.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,9 @@ func (mc *MessageConverter) convertStickerToMatrix(ctx context.Context, sticker
converted.Content.Body = sticker.GetEmoji()
converted.Type = event.EventSticker
converted.Content.MsgType = ""
if converted.Extra == nil {
converted.Extra = map[string]any{}
}
// TODO fetch full pack metadata like the old bridge did?
converted.Extra["fi.mau.signal.sticker"] = map[string]any{
"id": sticker.GetStickerId(),
Expand Down

0 comments on commit 94ae690

Please sign in to comment.