Skip to content

Commit

Permalink
Remove msc1767 audio field. Fixes #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

1 comment on commit 6304b6b

@brknkfr
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could extract duration with ffprobe but I don't know if this would be an acceptable way to do it.

Please sign in to comment.