Commit 7ce29824 authored by Wilko Manger's avatar Wilko Manger

Change AudioInfo.duration type to Duration

parent e54fab13
......@@ -114,7 +114,7 @@ abstract class MessageEvent extends RoomEvent {
var info = content['info'];
if (info != null) {
info = AudioInfo(
duration: info['duration'],
duration: Duration(milliseconds: info['duration']),
mimetype: info['mimetype'],
size: info['size'],
);
......@@ -333,7 +333,7 @@ class AudioMessage extends MessageEventContent {
}
class AudioInfo {
final int duration;
final Duration duration;
final String mimetype;
final int 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