mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Adopt the new deduplicate room versions room list filter.
This commit is contained in:
committed by
Stefan Ceriu
parent
458c6aaa57
commit
1f52546fc8
@@ -13749,71 +13749,6 @@ open class RoomSDKMock: MatrixRustSDK.Room, @unchecked Sendable {
|
||||
}
|
||||
}
|
||||
|
||||
//MARK: - isTombstoned
|
||||
|
||||
var isTombstonedUnderlyingCallsCount = 0
|
||||
open var isTombstonedCallsCount: Int {
|
||||
get {
|
||||
if Thread.isMainThread {
|
||||
return isTombstonedUnderlyingCallsCount
|
||||
} else {
|
||||
var returnValue: Int? = nil
|
||||
DispatchQueue.main.sync {
|
||||
returnValue = isTombstonedUnderlyingCallsCount
|
||||
}
|
||||
|
||||
return returnValue!
|
||||
}
|
||||
}
|
||||
set {
|
||||
if Thread.isMainThread {
|
||||
isTombstonedUnderlyingCallsCount = newValue
|
||||
} else {
|
||||
DispatchQueue.main.sync {
|
||||
isTombstonedUnderlyingCallsCount = newValue
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
open var isTombstonedCalled: Bool {
|
||||
return isTombstonedCallsCount > 0
|
||||
}
|
||||
|
||||
var isTombstonedUnderlyingReturnValue: Bool!
|
||||
open var isTombstonedReturnValue: Bool! {
|
||||
get {
|
||||
if Thread.isMainThread {
|
||||
return isTombstonedUnderlyingReturnValue
|
||||
} else {
|
||||
var returnValue: Bool? = nil
|
||||
DispatchQueue.main.sync {
|
||||
returnValue = isTombstonedUnderlyingReturnValue
|
||||
}
|
||||
|
||||
return returnValue!
|
||||
}
|
||||
}
|
||||
set {
|
||||
if Thread.isMainThread {
|
||||
isTombstonedUnderlyingReturnValue = newValue
|
||||
} else {
|
||||
DispatchQueue.main.sync {
|
||||
isTombstonedUnderlyingReturnValue = newValue
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
open var isTombstonedClosure: (() -> Bool)?
|
||||
|
||||
open override func isTombstoned() -> Bool {
|
||||
isTombstonedCallsCount += 1
|
||||
if let isTombstonedClosure = isTombstonedClosure {
|
||||
return isTombstonedClosure()
|
||||
} else {
|
||||
return isTombstonedReturnValue
|
||||
}
|
||||
}
|
||||
|
||||
//MARK: - join
|
||||
|
||||
open var joinThrowableError: Error?
|
||||
@@ -14966,6 +14901,71 @@ open class RoomSDKMock: MatrixRustSDK.Room, @unchecked Sendable {
|
||||
}
|
||||
}
|
||||
|
||||
//MARK: - predecessorRoom
|
||||
|
||||
var predecessorRoomUnderlyingCallsCount = 0
|
||||
open var predecessorRoomCallsCount: Int {
|
||||
get {
|
||||
if Thread.isMainThread {
|
||||
return predecessorRoomUnderlyingCallsCount
|
||||
} else {
|
||||
var returnValue: Int? = nil
|
||||
DispatchQueue.main.sync {
|
||||
returnValue = predecessorRoomUnderlyingCallsCount
|
||||
}
|
||||
|
||||
return returnValue!
|
||||
}
|
||||
}
|
||||
set {
|
||||
if Thread.isMainThread {
|
||||
predecessorRoomUnderlyingCallsCount = newValue
|
||||
} else {
|
||||
DispatchQueue.main.sync {
|
||||
predecessorRoomUnderlyingCallsCount = newValue
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
open var predecessorRoomCalled: Bool {
|
||||
return predecessorRoomCallsCount > 0
|
||||
}
|
||||
|
||||
var predecessorRoomUnderlyingReturnValue: PredecessorRoom?
|
||||
open var predecessorRoomReturnValue: PredecessorRoom? {
|
||||
get {
|
||||
if Thread.isMainThread {
|
||||
return predecessorRoomUnderlyingReturnValue
|
||||
} else {
|
||||
var returnValue: PredecessorRoom?? = nil
|
||||
DispatchQueue.main.sync {
|
||||
returnValue = predecessorRoomUnderlyingReturnValue
|
||||
}
|
||||
|
||||
return returnValue!
|
||||
}
|
||||
}
|
||||
set {
|
||||
if Thread.isMainThread {
|
||||
predecessorRoomUnderlyingReturnValue = newValue
|
||||
} else {
|
||||
DispatchQueue.main.sync {
|
||||
predecessorRoomUnderlyingReturnValue = newValue
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
open var predecessorRoomClosure: (() -> PredecessorRoom?)?
|
||||
|
||||
open override func predecessorRoom() -> PredecessorRoom? {
|
||||
predecessorRoomCallsCount += 1
|
||||
if let predecessorRoomClosure = predecessorRoomClosure {
|
||||
return predecessorRoomClosure()
|
||||
} else {
|
||||
return predecessorRoomReturnValue
|
||||
}
|
||||
}
|
||||
|
||||
//MARK: - previewRoom
|
||||
|
||||
open var previewRoomViaThrowableError: Error?
|
||||
@@ -16544,6 +16544,71 @@ open class RoomSDKMock: MatrixRustSDK.Room, @unchecked Sendable {
|
||||
}
|
||||
}
|
||||
|
||||
//MARK: - successorRoom
|
||||
|
||||
var successorRoomUnderlyingCallsCount = 0
|
||||
open var successorRoomCallsCount: Int {
|
||||
get {
|
||||
if Thread.isMainThread {
|
||||
return successorRoomUnderlyingCallsCount
|
||||
} else {
|
||||
var returnValue: Int? = nil
|
||||
DispatchQueue.main.sync {
|
||||
returnValue = successorRoomUnderlyingCallsCount
|
||||
}
|
||||
|
||||
return returnValue!
|
||||
}
|
||||
}
|
||||
set {
|
||||
if Thread.isMainThread {
|
||||
successorRoomUnderlyingCallsCount = newValue
|
||||
} else {
|
||||
DispatchQueue.main.sync {
|
||||
successorRoomUnderlyingCallsCount = newValue
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
open var successorRoomCalled: Bool {
|
||||
return successorRoomCallsCount > 0
|
||||
}
|
||||
|
||||
var successorRoomUnderlyingReturnValue: SuccessorRoom?
|
||||
open var successorRoomReturnValue: SuccessorRoom? {
|
||||
get {
|
||||
if Thread.isMainThread {
|
||||
return successorRoomUnderlyingReturnValue
|
||||
} else {
|
||||
var returnValue: SuccessorRoom?? = nil
|
||||
DispatchQueue.main.sync {
|
||||
returnValue = successorRoomUnderlyingReturnValue
|
||||
}
|
||||
|
||||
return returnValue!
|
||||
}
|
||||
}
|
||||
set {
|
||||
if Thread.isMainThread {
|
||||
successorRoomUnderlyingReturnValue = newValue
|
||||
} else {
|
||||
DispatchQueue.main.sync {
|
||||
successorRoomUnderlyingReturnValue = newValue
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
open var successorRoomClosure: (() -> SuccessorRoom?)?
|
||||
|
||||
open override func successorRoom() -> SuccessorRoom? {
|
||||
successorRoomCallsCount += 1
|
||||
if let successorRoomClosure = successorRoomClosure {
|
||||
return successorRoomClosure()
|
||||
} else {
|
||||
return successorRoomReturnValue
|
||||
}
|
||||
}
|
||||
|
||||
//MARK: - suggestedRoleForUser
|
||||
|
||||
open var suggestedRoleForUserUserIdThrowableError: Error?
|
||||
|
||||
Reference in New Issue
Block a user