|
|
|
@ -89,7 +89,7 @@ public struct Interaction: Codable, Identifiable, Equatable, FetchableRecord, Mu
|
|
|
|
|
|
|
|
|
|
public var isInfoMessage: Bool {
|
|
|
|
|
switch self {
|
|
|
|
|
case .infoClosedGroupCreated, .infoClosedGroupUpdated,
|
|
|
|
|
case .infoClosedGroupCreated, .infoClosedGroupUpdated,
|
|
|
|
|
.infoClosedGroupCurrentUserLeft, .infoClosedGroupCurrentUserLeaving, .infoClosedGroupCurrentUserErrorLeaving,
|
|
|
|
|
.infoDisappearingMessagesUpdate, .infoScreenshotNotification, .infoMediaSavedNotification,
|
|
|
|
|
.infoMessageRequestAccepted, .infoCall:
|
|
|
|
@ -100,6 +100,16 @@ public struct Interaction: Codable, Identifiable, Equatable, FetchableRecord, Mu
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public var isGroupControlMessage: Bool {
|
|
|
|
|
switch self {
|
|
|
|
|
case .infoClosedGroupCreated, .infoClosedGroupUpdated,
|
|
|
|
|
.infoClosedGroupCurrentUserLeft, .infoClosedGroupCurrentUserLeaving, .infoClosedGroupCurrentUserErrorLeaving:
|
|
|
|
|
return true
|
|
|
|
|
default:
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// This flag controls whether the `wasRead` flag is automatically set to true based on the message variant (as a result it they will
|
|
|
|
|
/// or won't affect the unread count)
|
|
|
|
|
fileprivate var canBeUnread: Bool {
|
|
|
|
|