mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
UI fixes
This commit is contained in:
@@ -243,6 +243,7 @@ struct ChatContactStatus: Equatable {
|
||||
var canAddContact: Bool
|
||||
var canReportIrrelevantLocation: Bool
|
||||
var peerStatusSettings: PeerStatusSettings?
|
||||
var invitedBy: Peer?
|
||||
|
||||
var isEmpty: Bool {
|
||||
guard var peerStatusSettings = self.peerStatusSettings else {
|
||||
@@ -256,6 +257,22 @@ struct ChatContactStatus: Equatable {
|
||||
}
|
||||
return peerStatusSettings.isEmpty
|
||||
}
|
||||
|
||||
static func ==(lhs: ChatContactStatus, rhs: ChatContactStatus) -> Bool {
|
||||
if lhs.canAddContact != rhs.canAddContact {
|
||||
return false
|
||||
}
|
||||
if lhs.canReportIrrelevantLocation != rhs.canReportIrrelevantLocation {
|
||||
return false
|
||||
}
|
||||
if lhs.peerStatusSettings != rhs.peerStatusSettings {
|
||||
return false
|
||||
}
|
||||
if !arePeersEqual(lhs.invitedBy, rhs.invitedBy) {
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
enum ChatSlowmodeVariant: Equatable {
|
||||
|
||||
Reference in New Issue
Block a user