Skip to content

Commit

Permalink
added a mock for the pinned event ids
Browse files Browse the repository at this point in the history
  • Loading branch information
Velin92 committed Jul 26, 2024
1 parent e920432 commit 9278aa6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ElementX/Sources/Mocks/RoomProxyMock.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ struct RoomProxyMockConfiguration {
var isEncrypted = true
var hasOngoingCall = true
var canonicalAlias: String?
var pinnedEventIDs: [String] = []

var timelineStartReached = false

Expand Down Expand Up @@ -63,6 +64,8 @@ extension RoomProxyMock {
hasOngoingCall = configuration.hasOngoingCall
canonicalAlias = configuration.canonicalAlias

underlyingPinnedEventIDs = configuration.pinnedEventIDs

let timeline = TimelineProxyMock()
timeline.sendMessageEventContentReturnValue = .success(())
timeline.paginateBackwardsRequestSizeReturnValue = .success(())
Expand Down

0 comments on commit 9278aa6

Please sign in to comment.