mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Pinned Events Timeline actions and differentiation (#3182)
This commit is contained in:
@@ -446,7 +446,7 @@ class MockScreen: Identifiable {
|
||||
let client = try UITestsSignalling.Client(mode: .app)
|
||||
client.signals.sink { [weak self] signal in
|
||||
guard case .timeline(.focusOnEvent(let eventID)) = signal else { return }
|
||||
coordinator.focusOnEvent(eventID: eventID)
|
||||
coordinator.focusOnEvent(.init(eventID: eventID, shouldSetPin: false))
|
||||
try? client.send(.success)
|
||||
}
|
||||
.store(in: &cancellables)
|
||||
@@ -649,6 +649,7 @@ class MockScreen: Identifiable {
|
||||
let timelineController = RoomTimelineController(roomProxy: roomProxy,
|
||||
timelineProxy: roomProxy.timeline,
|
||||
initialFocussedEventID: nil,
|
||||
shouldHideStart: false,
|
||||
timelineItemFactory: RoomTimelineItemFactory(userID: "@alice:matrix.org",
|
||||
attributedStringBuilder: AttributedStringBuilder(mentionBuilder: MentionBuilder()),
|
||||
stateEventStringBuilder: RoomStateEventStringBuilder(userID: "@alice:matrix.org")),
|
||||
|
||||
Reference in New Issue
Block a user