Skip to content

Commit

Permalink
Remove msc1767 audio field. Fixes mautrix#513
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed May 17, 2024
1 parent 585397a commit 6304b6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion msgconv/from-signal.go
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,8 @@ func (mc *MessageConverter) reuploadAttachment(ctx context.Context, att *signalp
fileName += ".ogg"
mimeType = "audio/ogg"
extra["org.matrix.msc3245.voice"] = map[string]any{}
extra["org.matrix.msc1767.audio"] = map[string]any{}
// TODO include duration here (and in info) if there's some easy way to extract it with ffmpeg
//extra["org.matrix.msc1767.audio"] = map[string]any{"duration": ???}
}
var file *event.EncryptedFileInfo
uploadMime := mimeType
Expand Down

0 comments on commit 6304b6b

Please sign in to comment.