mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2024-12-17 17:20:21 +01:00
cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user