@@ -9974,82 +9974,6 @@ open class NotificationSettingsSDKMock: MatrixRustSDK.NotificationSettings {
9974
9974
try await unmuteRoomRoomIdIsEncryptedIsOneToOneClosure?(roomId, isEncrypted, isOneToOne)
9975
9975
}
9976
9976
}
9977
- open class OidcAuthorizationDataSDKMock: MatrixRustSDK.OidcAuthorizationData {
9978
- init() {
9979
- super.init(noPointer: .init())
9980
- }
9981
-
9982
- public required init(unsafeFromRawPointer pointer: UnsafeMutableRawPointer) {
9983
- fatalError("init(unsafeFromRawPointer:) has not been implemented")
9984
- }
9985
-
9986
- fileprivate var pointer: UnsafeMutableRawPointer!
9987
-
9988
- //MARK: - loginUrl
9989
-
9990
- var loginUrlUnderlyingCallsCount = 0
9991
- open var loginUrlCallsCount: Int {
9992
- get {
9993
- if Thread.isMainThread {
9994
- return loginUrlUnderlyingCallsCount
9995
- } else {
9996
- var returnValue: Int? = nil
9997
- DispatchQueue.main.sync {
9998
- returnValue = loginUrlUnderlyingCallsCount
9999
- }
10000
-
10001
- return returnValue!
10002
- }
10003
- }
10004
- set {
10005
- if Thread.isMainThread {
10006
- loginUrlUnderlyingCallsCount = newValue
10007
- } else {
10008
- DispatchQueue.main.sync {
10009
- loginUrlUnderlyingCallsCount = newValue
10010
- }
10011
- }
10012
- }
10013
- }
10014
- open var loginUrlCalled: Bool {
10015
- return loginUrlCallsCount > 0
10016
- }
10017
-
10018
- var loginUrlUnderlyingReturnValue: String!
10019
- open var loginUrlReturnValue: String! {
10020
- get {
10021
- if Thread.isMainThread {
10022
- return loginUrlUnderlyingReturnValue
10023
- } else {
10024
- var returnValue: String? = nil
10025
- DispatchQueue.main.sync {
10026
- returnValue = loginUrlUnderlyingReturnValue
10027
- }
10028
-
10029
- return returnValue!
10030
- }
10031
- }
10032
- set {
10033
- if Thread.isMainThread {
10034
- loginUrlUnderlyingReturnValue = newValue
10035
- } else {
10036
- DispatchQueue.main.sync {
10037
- loginUrlUnderlyingReturnValue = newValue
10038
- }
10039
- }
10040
- }
10041
- }
10042
- open var loginUrlClosure: (() -> String)?
10043
-
10044
- open override func loginUrl() -> String {
10045
- loginUrlCallsCount += 1
10046
- if let loginUrlClosure = loginUrlClosure {
10047
- return loginUrlClosure()
10048
- } else {
10049
- return loginUrlReturnValue
10050
- }
10051
- }
10052
- }
10053
9977
open class QrCodeDataSDKMock: MatrixRustSDK.QrCodeData {
10054
9978
init() {
10055
9979
super.init(noPointer: .init())
@@ -18686,8 +18610,8 @@ open class TimelineSDKMock: MatrixRustSDK.Timeline {
18686
18610
open var editItemNewContentCalled: Bool {
18687
18611
return editItemNewContentCallsCount > 0
18688
18612
}
18689
- open var editItemNewContentReceivedArguments: (item: EventTimelineItem, newContent: RoomMessageEventContentWithoutRelation )?
18690
- open var editItemNewContentReceivedInvocations: [(item: EventTimelineItem, newContent: RoomMessageEventContentWithoutRelation )] = []
18613
+ open var editItemNewContentReceivedArguments: (item: EventTimelineItem, newContent: EditedContent )?
18614
+ open var editItemNewContentReceivedInvocations: [(item: EventTimelineItem, newContent: EditedContent )] = []
18691
18615
18692
18616
var editItemNewContentUnderlyingReturnValue: Bool!
18693
18617
open var editItemNewContentReturnValue: Bool! {
@@ -18713,9 +18637,9 @@ open class TimelineSDKMock: MatrixRustSDK.Timeline {
18713
18637
}
18714
18638
}
18715
18639
}
18716
- open var editItemNewContentClosure: ((EventTimelineItem, RoomMessageEventContentWithoutRelation ) async throws -> Bool)?
18640
+ open var editItemNewContentClosure: ((EventTimelineItem, EditedContent ) async throws -> Bool)?
18717
18641
18718
- open override func edit(item: EventTimelineItem, newContent: RoomMessageEventContentWithoutRelation ) async throws -> Bool {
18642
+ open override func edit(item: EventTimelineItem, newContent: EditedContent ) async throws -> Bool {
18719
18643
if let error = editItemNewContentThrowableError {
18720
18644
throw error
18721
18645
}
@@ -18731,52 +18655,6 @@ open class TimelineSDKMock: MatrixRustSDK.Timeline {
18731
18655
}
18732
18656
}
18733
18657
18734
- //MARK: - editPoll
18735
-
18736
- open var editPollQuestionAnswersMaxSelectionsPollKindEditItemThrowableError: Error?
18737
- var editPollQuestionAnswersMaxSelectionsPollKindEditItemUnderlyingCallsCount = 0
18738
- open var editPollQuestionAnswersMaxSelectionsPollKindEditItemCallsCount: Int {
18739
- get {
18740
- if Thread.isMainThread {
18741
- return editPollQuestionAnswersMaxSelectionsPollKindEditItemUnderlyingCallsCount
18742
- } else {
18743
- var returnValue: Int? = nil
18744
- DispatchQueue.main.sync {
18745
- returnValue = editPollQuestionAnswersMaxSelectionsPollKindEditItemUnderlyingCallsCount
18746
- }
18747
-
18748
- return returnValue!
18749
- }
18750
- }
18751
- set {
18752
- if Thread.isMainThread {
18753
- editPollQuestionAnswersMaxSelectionsPollKindEditItemUnderlyingCallsCount = newValue
18754
- } else {
18755
- DispatchQueue.main.sync {
18756
- editPollQuestionAnswersMaxSelectionsPollKindEditItemUnderlyingCallsCount = newValue
18757
- }
18758
- }
18759
- }
18760
- }
18761
- open var editPollQuestionAnswersMaxSelectionsPollKindEditItemCalled: Bool {
18762
- return editPollQuestionAnswersMaxSelectionsPollKindEditItemCallsCount > 0
18763
- }
18764
- open var editPollQuestionAnswersMaxSelectionsPollKindEditItemReceivedArguments: (question: String, answers: [String], maxSelections: UInt8, pollKind: PollKind, editItem: EventTimelineItem)?
18765
- open var editPollQuestionAnswersMaxSelectionsPollKindEditItemReceivedInvocations: [(question: String, answers: [String], maxSelections: UInt8, pollKind: PollKind, editItem: EventTimelineItem)] = []
18766
- open var editPollQuestionAnswersMaxSelectionsPollKindEditItemClosure: ((String, [String], UInt8, PollKind, EventTimelineItem) async throws -> Void)?
18767
-
18768
- open override func editPoll(question: String, answers: [String], maxSelections: UInt8, pollKind: PollKind, editItem: EventTimelineItem) async throws {
18769
- if let error = editPollQuestionAnswersMaxSelectionsPollKindEditItemThrowableError {
18770
- throw error
18771
- }
18772
- editPollQuestionAnswersMaxSelectionsPollKindEditItemCallsCount += 1
18773
- editPollQuestionAnswersMaxSelectionsPollKindEditItemReceivedArguments = (question: question, answers: answers, maxSelections: maxSelections, pollKind: pollKind, editItem: editItem)
18774
- DispatchQueue.main.async {
18775
- self.editPollQuestionAnswersMaxSelectionsPollKindEditItemReceivedInvocations.append((question: question, answers: answers, maxSelections: maxSelections, pollKind: pollKind, editItem: editItem))
18776
- }
18777
- try await editPollQuestionAnswersMaxSelectionsPollKindEditItemClosure?(question, answers, maxSelections, pollKind, editItem)
18778
- }
18779
-
18780
18658
//MARK: - endPoll
18781
18659
18782
18660
open var endPollPollStartIdTextThrowableError: Error?
0 commit comments