mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-07 04:48:34 +00:00
Replace the existing RoomSummaryProviderMock with a generated one
This commit is contained in:
committed by
Stefan Ceriu
parent
5f0c782ce2
commit
932ba75550
@@ -64,6 +64,15 @@ enum RoomSummary: CustomStringConvertible, Equatable {
|
||||
}
|
||||
}
|
||||
|
||||
var isDirect: Bool {
|
||||
switch self {
|
||||
case .empty:
|
||||
return false
|
||||
case .invalidated(let details), .filled(let details):
|
||||
return details.isDirect
|
||||
}
|
||||
}
|
||||
|
||||
var description: String {
|
||||
switch self {
|
||||
case .empty:
|
||||
@@ -111,6 +120,7 @@ enum RoomSummaryProviderFilter: Equatable {
|
||||
case include(Predicate)
|
||||
}
|
||||
|
||||
// sourcery: AutoMockable
|
||||
protocol RoomSummaryProviderProtocol {
|
||||
/// Publishes the currently available room summaries
|
||||
var roomListPublisher: CurrentValuePublisher<[RoomSummary], Never> { get }
|
||||
|
||||
Reference in New Issue
Block a user