Files
Morgan Pretty 92dc30ffcb Bunch of process on pro integration
• Added integration for new refund request
• Wired up the refunding states based on the new data
• Updated code to use strings from libSession instead of hardcoded values
• Updated the code to trigger a pro state refresh when the `proAccessExpiryTimestampMs` on the config changes (ie. another device made a change to the pro configuration)
• Updated logic to drive mocked pro states via the SessionProManager to make the code a bit cleaner
• Updated the handling of pro proofs to sync both active and expired proofs (instead of just active)
• Fixed a bunch of warnings
2025-11-26 14:38:29 +11:00

23 lines
666 B
Swift

// Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
import Foundation
extension Network.SOGS {
public struct PinnedMessage: Sendable, Codable, Equatable {
enum CodingKeys: String, CodingKey {
case id
case pinnedAt = "pinned_at"
case pinnedBy = "pinned_by"
}
/// The numeric message id
let id: Int64
/// The unix timestamp when the message was pinned
let pinnedAt: TimeInterval
/// The session ID of the admin who pinned this message (which is not necessarily the same as the author of the message)
let pinnedBy: String
}
}