mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Fix a couple of warnings
This commit is contained in:
committed by
Stefan Ceriu
parent
09970fdbab
commit
212cd42161
@@ -5,8 +5,6 @@
|
|||||||
// Please see LICENSE files in the repository root for full details.
|
// 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 Combine
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
|
|||||||
@@ -264,7 +264,7 @@ private extension EventBasedTimelineItemProtocol {
|
|||||||
return locationTimelineItem.content.geoURI == nil ||
|
return locationTimelineItem.content.geoURI == nil ||
|
||||||
properties.replyDetails != nil ||
|
properties.replyDetails != nil ||
|
||||||
properties.isThreaded ? defaultInsets : .zero
|
properties.isThreaded ? defaultInsets : .zero
|
||||||
case let liveLocationTimelineItem as LiveLocationRoomTimelineItem:
|
case is LiveLocationRoomTimelineItem:
|
||||||
return properties.replyDetails != nil ||
|
return properties.replyDetails != nil ||
|
||||||
properties.isThreaded ? defaultInsets : .zero
|
properties.isThreaded ? defaultInsets : .zero
|
||||||
default:
|
default:
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ class JoinedRoomProxy: JoinedRoomProxyProtocol {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func threadListService() async -> RoomThreadListServiceProxyProtocol {
|
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> {
|
func loadOrFetchEventDetails(for eventID: String) async -> Result<TimelineEvent, RoomProxyError> {
|
||||||
|
|||||||
@@ -198,7 +198,7 @@ enum RoomTimelineItemType: Equatable {
|
|||||||
case .liveLocation(let item):
|
case .liveLocation(let item):
|
||||||
return item.timestamp
|
return item.timestamp
|
||||||
case .group(let item):
|
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:
|
case .readMarker, .paginationIndicator, .timelineStart:
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user