Fix a couple of warnings
This commit is contained in:
committed by
Stefan Ceriu
parent
46614558e7
commit
5f8d7d75a1
@@ -5,8 +5,6 @@
|
||||
// Please see LICENSE files in the repository root for full details.
|
||||
//
|
||||
|
||||
// periphery:ignore:all - this is just a roomThreadList remove this comment once generating the final file
|
||||
|
||||
import Combine
|
||||
import SwiftUI
|
||||
|
||||
|
||||
@@ -264,7 +264,7 @@ private extension EventBasedTimelineItemProtocol {
|
||||
return locationTimelineItem.content.geoURI == nil ||
|
||||
properties.replyDetails != nil ||
|
||||
properties.isThreaded ? defaultInsets : .zero
|
||||
case let liveLocationTimelineItem as LiveLocationRoomTimelineItem:
|
||||
case is LiveLocationRoomTimelineItem:
|
||||
return properties.replyDetails != nil ||
|
||||
properties.isThreaded ? defaultInsets : .zero
|
||||
default:
|
||||
|
||||
@@ -204,7 +204,7 @@ class JoinedRoomProxy: JoinedRoomProxyProtocol {
|
||||
}
|
||||
|
||||
func threadListService() async -> RoomThreadListServiceProxyProtocol {
|
||||
await RoomThreadListProxy(threadListService: room.threadListService(), eventStringBuilder: eventStringBuilder)
|
||||
RoomThreadListProxy(threadListService: room.threadListService(), eventStringBuilder: eventStringBuilder)
|
||||
}
|
||||
|
||||
func loadOrFetchEventDetails(for eventID: String) async -> Result<TimelineEvent, RoomProxyError> {
|
||||
|
||||
@@ -198,7 +198,7 @@ enum RoomTimelineItemType: Equatable {
|
||||
case .liveLocation(let item):
|
||||
return item.timestamp
|
||||
case .group(let item):
|
||||
return (item.items.first(where: { $0 is EventBasedTimelineItemProtocol }) as? EventBasedTimelineItemProtocol)?.timestamp
|
||||
return (item.items.first { $0 is EventBasedTimelineItemProtocol } as? EventBasedTimelineItemProtocol)?.timestamp
|
||||
case .readMarker, .paginationIndicator, .timelineStart:
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user