|
|
|
@ -73,8 +73,6 @@ public struct Interaction: Codable, Identifiable, Equatable, FetchableRecord, Mu
|
|
|
|
|
case infoClosedGroupCreated = 1000
|
|
|
|
|
case infoClosedGroupUpdated
|
|
|
|
|
case infoClosedGroupCurrentUserLeft
|
|
|
|
|
case infoClosedGroupCurrentUserLeaving
|
|
|
|
|
case infoClosedGroupCurrentUserErrorLeaving
|
|
|
|
|
|
|
|
|
|
case infoDisappearingMessagesUpdate = 2000
|
|
|
|
|
|
|
|
|
@ -89,7 +87,7 @@ public struct Interaction: Codable, Identifiable, Equatable, FetchableRecord, Mu
|
|
|
|
|
|
|
|
|
|
public var isInfoMessage: Bool {
|
|
|
|
|
switch self {
|
|
|
|
|
case .infoClosedGroupCreated, .infoClosedGroupUpdated, .infoClosedGroupCurrentUserLeft, .infoClosedGroupCurrentUserLeaving, .infoClosedGroupCurrentUserErrorLeaving,
|
|
|
|
|
case .infoClosedGroupCreated, .infoClosedGroupUpdated, .infoClosedGroupCurrentUserLeft,
|
|
|
|
|
.infoDisappearingMessagesUpdate, .infoScreenshotNotification, .infoMediaSavedNotification,
|
|
|
|
|
.infoMessageRequestAccepted, .infoCall:
|
|
|
|
|
return true
|
|
|
|
@ -108,7 +106,7 @@ public struct Interaction: Codable, Identifiable, Equatable, FetchableRecord, Mu
|
|
|
|
|
|
|
|
|
|
case .standardOutgoing, .standardIncomingDeleted: return false
|
|
|
|
|
|
|
|
|
|
case .infoClosedGroupCreated, .infoClosedGroupUpdated, .infoClosedGroupCurrentUserLeft, .infoClosedGroupCurrentUserLeaving, .infoClosedGroupCurrentUserErrorLeaving,
|
|
|
|
|
case .infoClosedGroupCreated, .infoClosedGroupUpdated, .infoClosedGroupCurrentUserLeft,
|
|
|
|
|
.infoDisappearingMessagesUpdate, .infoScreenshotNotification, .infoMediaSavedNotification,
|
|
|
|
|
.infoMessageRequestAccepted:
|
|
|
|
|
return false
|
|
|
|
@ -848,8 +846,6 @@ public extension Interaction {
|
|
|
|
|
|
|
|
|
|
case .infoClosedGroupCreated: return "GROUP_CREATED".localized()
|
|
|
|
|
case .infoClosedGroupCurrentUserLeft: return "GROUP_YOU_LEFT".localized()
|
|
|
|
|
case .infoClosedGroupCurrentUserLeaving: return "group_you_leaving".localized()
|
|
|
|
|
case .infoClosedGroupCurrentUserErrorLeaving: return "group_leave_error".localized()
|
|
|
|
|
case .infoClosedGroupUpdated: return (body ?? "GROUP_UPDATED".localized())
|
|
|
|
|
case .infoMessageRequestAccepted: return (body ?? "MESSAGE_REQUESTS_ACCEPTED".localized())
|
|
|
|
|
|
|
|
|
|