mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Fix a compile error.
This commit is contained in:
@@ -296,7 +296,7 @@ private extension AudioRoomTimelineItem {
|
|||||||
caption: caption,
|
caption: caption,
|
||||||
duration: 60,
|
duration: 60,
|
||||||
waveform: nil,
|
waveform: nil,
|
||||||
source: .init(url: .mockMXCAudio, mimeType: nil),
|
source: try? .init(url: .mockMXCAudio, mimeType: nil),
|
||||||
fileSize: nil,
|
fileSize: nil,
|
||||||
contentType: .mp3))
|
contentType: .mp3))
|
||||||
}
|
}
|
||||||
@@ -313,7 +313,7 @@ private extension FileRoomTimelineItem {
|
|||||||
sender: .init(id: isOutgoing ? "@alice:matrix.org" : "@bob:matrix.org"),
|
sender: .init(id: isOutgoing ? "@alice:matrix.org" : "@bob:matrix.org"),
|
||||||
content: .init(filename: "file.pdf",
|
content: .init(filename: "file.pdf",
|
||||||
caption: caption,
|
caption: caption,
|
||||||
source: .init(url: .mockMXCFile, mimeType: nil),
|
source: try? .init(url: .mockMXCFile, mimeType: nil),
|
||||||
fileSize: nil,
|
fileSize: nil,
|
||||||
thumbnailSource: nil,
|
thumbnailSource: nil,
|
||||||
contentType: .pdf))
|
contentType: .pdf))
|
||||||
@@ -366,7 +366,7 @@ private extension VoiceMessageRoomTimelineItem {
|
|||||||
content: .init(filename: "message.ogg",
|
content: .init(filename: "message.ogg",
|
||||||
duration: 10,
|
duration: 10,
|
||||||
waveform: .mockWaveform,
|
waveform: .mockWaveform,
|
||||||
source: .init(url: .mockMXCAudio, mimeType: nil),
|
source: try? .init(url: .mockMXCAudio, mimeType: nil),
|
||||||
fileSize: nil,
|
fileSize: nil,
|
||||||
contentType: .audio))
|
contentType: .audio))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user