mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Update the SDK and use media filename and caption internally. (#3375)
Doesn't render captions (other than in fallback places).
This commit is contained in:
@@ -149,7 +149,10 @@ class LoggingTests: XCTestCase {
|
||||
canBeRepliedTo: true,
|
||||
isThreaded: false,
|
||||
sender: .init(id: "sender"),
|
||||
content: .init(body: "ImageString", source: MediaSourceProxy(url: .picturesDirectory, mimeType: "image/gif"), thumbnailSource: nil))
|
||||
content: .init(filename: "ImageString",
|
||||
caption: "ImageString",
|
||||
source: MediaSourceProxy(url: .picturesDirectory, mimeType: "image/gif"),
|
||||
thumbnailSource: nil))
|
||||
let videoMessage = VideoRoomTimelineItem(id: .random,
|
||||
timestamp: "",
|
||||
isOutgoing: false,
|
||||
@@ -157,7 +160,11 @@ class LoggingTests: XCTestCase {
|
||||
canBeRepliedTo: true,
|
||||
isThreaded: false,
|
||||
sender: .init(id: "sender"),
|
||||
content: .init(body: "VideoString", duration: 0, source: nil, thumbnailSource: nil))
|
||||
content: .init(filename: "VideoString",
|
||||
caption: "VideoString",
|
||||
duration: 0,
|
||||
source: nil,
|
||||
thumbnailSource: nil))
|
||||
let fileMessage = FileRoomTimelineItem(id: .random,
|
||||
timestamp: "",
|
||||
isOutgoing: false,
|
||||
@@ -165,7 +172,11 @@ class LoggingTests: XCTestCase {
|
||||
canBeRepliedTo: true,
|
||||
isThreaded: false,
|
||||
sender: .init(id: "sender"),
|
||||
content: .init(body: "FileString", source: nil, thumbnailSource: nil, contentType: nil))
|
||||
content: .init(filename: "FileString",
|
||||
caption: "FileString",
|
||||
source: nil,
|
||||
thumbnailSource: nil,
|
||||
contentType: nil))
|
||||
|
||||
// When logging that value
|
||||
MXLog.configure(currentTarget: "tests", filePrefix: nil, logLevel: .info)
|
||||
|
||||
Reference in New Issue
Block a user