mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-04 10:33:45 +00:00
Support adding a caption to media uploads. (#3531)
* Add a composer to the MediaUploadPreviewScreen. And send it's content to the media upload's caption. * Use the new compound SendButton (updating relative padding in the toolbar). * Update snapshots. * Add unit tests for sending a caption.
This commit is contained in:
@@ -49,22 +49,8 @@ extension JoinedRoomProxyMock {
|
||||
id = configuration.id
|
||||
isEncrypted = configuration.isEncrypted
|
||||
|
||||
let timeline = TimelineProxyMock()
|
||||
timeline.sendMessageEventContentReturnValue = .success(())
|
||||
timeline.paginateBackwardsRequestSizeReturnValue = .success(())
|
||||
timeline.paginateForwardsRequestSizeReturnValue = .success(())
|
||||
timeline.sendReadReceiptForTypeReturnValue = .success(())
|
||||
|
||||
if configuration.shouldUseAutoUpdatingTimeline {
|
||||
timeline.underlyingTimelineProvider = AutoUpdatingRoomTimelineProviderMock()
|
||||
} else {
|
||||
let timelineProvider = RoomTimelineProviderMock()
|
||||
timelineProvider.paginationState = .init(backward: configuration.timelineStartReached ? .timelineEndReached : .idle, forward: .timelineEndReached)
|
||||
timelineProvider.underlyingMembershipChangePublisher = PassthroughSubject().eraseToAnyPublisher()
|
||||
timeline.underlyingTimelineProvider = timelineProvider
|
||||
}
|
||||
|
||||
self.timeline = timeline
|
||||
timeline = TimelineProxyMock(.init(isAutoUpdating: configuration.shouldUseAutoUpdatingTimeline,
|
||||
timelineStartReached: configuration.timelineStartReached))
|
||||
|
||||
ownUserID = configuration.ownUserID
|
||||
|
||||
|
||||
Reference in New Issue
Block a user