Commit 3138af48 authored by Wilko Manger's avatar Wilko Manger

Make sure duration milliseconds is an int

Fixes PATTLE-4Z.
parent 7ce29824
......@@ -114,7 +114,7 @@ abstract class MessageEvent extends RoomEvent {
var info = content['info'];
if (info != null) {
info = AudioInfo(
duration: Duration(milliseconds: info['duration']),
duration: Duration(milliseconds: info['duration'].round()),
mimetype: info['mimetype'],
size: info['size'],
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment