From 6c1a8213047ca5a8d1f448244e7bf95f1691d728 Mon Sep 17 00:00:00 2001 From: Levitating Pineapple Date: Fri, 23 Aug 2024 11:49:37 +0300 Subject: [PATCH] cleanup --- apps/ios/Shared/Views/Chat/ChatView.swift | 4 ---- apps/ios/SimpleXChat/ChatTypes.swift | 8 -------- 2 files changed, 12 deletions(-) diff --git a/apps/ios/Shared/Views/Chat/ChatView.swift b/apps/ios/Shared/Views/Chat/ChatView.swift index 3d228c19e6..ba26a1a59e 100644 --- a/apps/ios/Shared/Views/Chat/ChatView.swift +++ b/apps/ios/Shared/Views/Chat/ChatView.swift @@ -717,10 +717,6 @@ struct ChatView: View { var revealed: Bool { chatItem == revealedChatItem } - private func componentsToMinute(_ date: Date) -> DateComponents { - Calendar.current.dateComponents([.year, .month, .day, .hour, .minute], from: date) - } - struct TimeSeparation { let isTimestampShown: Bool let isDateShown: Bool // TODO: Implement UI to show date diff --git a/apps/ios/SimpleXChat/ChatTypes.swift b/apps/ios/SimpleXChat/ChatTypes.swift index 27452070a8..1a9cf4a216 100644 --- a/apps/ios/SimpleXChat/ChatTypes.swift +++ b/apps/ios/SimpleXChat/ChatTypes.swift @@ -2471,14 +2471,6 @@ public struct ChatItem: Identifiable, Decodable, Hashable { return fileSource.cryptoArgs != nil } - public var rcvMember: GroupMember? { - if case let .groupRcv(groupMember) = chatDir { - groupMember - } else { - nil - } - } - public var memberDisplayName: String? { if case let .groupRcv(groupMember) = chatDir { switch content {